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)
- Allow numbers in module_name_repetitions
- `lints.workspace` is not allowed to be `false` HOT 1
- `[workspace.lints.clippy]` cannot override a category `"warn"` with a lint specific `"allow"` HOT 3
- `io::Error::new(io::ErrorKind::Other, ..)`
- Clippy lints website doesn't replace dashes with underscores more than once
- `undocumented_unsafe_blocks` doesn't recognise safety comments before `const`s in `impl` blocks
- `clippy::cast_possible_truncation` is inconsistent in recognizing where values will never be truncated
- option_if_let_else results in code that doesn't compile
- Different trade-offs for `or_fun_call` false positives
- `unimplemented_default_member` HOT 2
- `lint_groups_priority` does not work for workspace `Cargo.toml`
- `from_str_radix_10` lint shows up in const contexts when the suggestion is not const
- `redundant_async_block` not catching uses with nontrivial futures HOT 1
- Issues with `readonly_write_lock` HOT 3
- unnecessary_cast should catch unnecessary pointer cast
- temporary with significant Drop can be early dropped
- assigning_clones: `clone_from` suggested on uninitialized variable
- `overly_complex_bool_expr` triggers wrongly on `(return) || true` HOT 1
- assigning_clones: suggestion causes error because of borrowed target HOT 1
- redundant_slicing suggests change that doesn't compile.
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.