Comments (2)
There's been some discussion for what this should look like in #11808.
arithmetic wrapping (or maybe it should be caught too somehow?)
arithmetic_side_effects
should do this
from rust-clippy.
@y21 thanks for the link! This is exactly what i was looking for (I wonder if this issue should be closed then?). My only concern is that the discussion has from the start dismissed the overlapping groups, making it far harder for the users (i.e. everyone now has to copy and maintain their own list of lints in each project - a huge detriment to usability). Overlapping lint groups is a far smaller evil in my opinion, especially now that we have group priorities.
from rust-clippy.
Related Issues (20)
- needless_character_iteration false positive HOT 2
- ICE: index out of bounds when shadowing a function with a different number of arguments
- `ref_as_ptr` suggests using `ptr::from_ref(r)` where it should instead suggest `ptr::from_mut(r)` for `r: &mut T`.
- Suggested lint: avoid passing `&mut _` to `core::ptr::from_ref` HOT 1
- Add tuple swap algorithm detection to existing clippy::manual_swap
- internal compiler error: encountered incremental compilation error with mir_built(72773264b3289453-ebe898ff739d56f9) HOT 5
- Changing `bool` to `Result<(), ()>` in function return type leads to clippy warnings HOT 5
- Add lints against more manual integer ops where direct methods exist HOT 1
- Recommend `std::sync::LazyLock` over other lazy static options HOT 1
- Deny `static mut` declarations entirely HOT 1
- unnecessary_operation fires wrongly when extracting `!`
- Clippy crashes after using custom serde serializers for datetime HOT 1
- needless_pass_by_ref_mut triggers on mutable raw pointer
- Removing return not sugggested by `needless_return` when calling some chained string methods
- `needless_lifetimes` removes lifetimes that are actually necessary HOT 1
- `clippy::default_trait_access` can give incorrect suggestion
- `missing_inline_in_public_items` triggers for `impl From<Private> for Public`
- Possibly unintended use of unary `!` of non-`bool` type on left side of boolean expression/comparison
- Seemingly false positive of `doc_lazy_continuation` HOT 2
- Lint suggestion: `cfg!(not(...))` vs `!cfg!(...)`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-clippy.