Comments (2)
I have a few examples on http://is.gd/Rz0BtT (rust playpen).
The lint should detect ExprBinary(op1, ExprBinary(op2, …), …)
or ExprBinary(op1, …, ExprBinary(op2, …)
where op1 and op2 are from different operator classes (arithmetic vs. bit-shifting/bit-combining).
from rust-clippy.
Done.
from rust-clippy.
Related Issues (20)
- Confusing message (empty attribute) in double_must_use HOT 1
- Lint for highlighting possibly invalid coercion `Box<dyn Any>` -> `&dyn Any` with implicit deref
- manual_inspect does not have an error message
- non_minimal_cfg suppression sometimes not effective HOT 3
- missing_const_for_fn triggers for C-unwind HOT 1
- missing_const_for_fn does not work with TAIT
- missing-const-for-fn shoud not trigger on no-ffi-save fns
- `single_match` suggestion causes deny-by-default eq-op warning
- FP missing-const-for-fn: `the destructor for this type cannot be evaluated in constant functions
- missing-const-for-fn might want to skip macros
- missing-const-for-fn: println is not const-(st)able yet HOT 1
- missing-const-for-fn : const_refs_to_cell is not stable yet
- Nightly clippy: `manual_unwrap_or` false positive
- Use `NonZero<T>` instead of `NonZeroT` HOT 3
- Avoid subtracting `Duration` from `Instant` HOT 8
- mut_mut complains when borrowing from a slice of mutable references
- Decimal literal suffix of 0 (`2.` vs. `2.0`) HOT 2
- value assigned to `found` is never read, in loop with continue HOT 2
- `undocumented_unsafe_blocks` can be broken by `rustfmt`
- False negative: `manual_rotate` doesn't catch variable shift amounts
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.