-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add symbols for Clippy usage #115177
Add symbols for Clippy usage #115177
Conversation
r? @jackh726 (rustbot has picked a reviewer for you, use r? to override) |
@c410-f3r: do you also want to modify |
Thanks for the response @compiler-errors Hum... The current Clippy code of |
I guess this is fine, but pls make sure to actually use them after the next clippy sync :) @bors r+ rollup |
Rollup of 9 pull requests Successful merges: - rust-lang#114987 (elaborate a bit on the (lack of) safety in 'Mmap::map') - rust-lang#115084 (Add smir `predicates_of`) - rust-lang#115117 (Detect and report nix shell) - rust-lang#115124 (kmc-solid: Import `std::sync::PoisonError` in `std::sys::solid::os`) - rust-lang#115152 (refactor(lint): translate `RenamedOrRemovedLint`) - rust-lang#115154 (Move some ui tests to subdirectories) - rust-lang#115167 (Fix ub-int-array test for big-endian platforms) - rust-lang#115172 (Add more tests for if_let_guard) - rust-lang#115177 (Add symbols for Clippy usage) r? `@ghost` `@rustbot` modify labels: rollup
[`Clippy`] Use symbols intended for `arithmetic_side_effects` rust-lang#115177 added the symbols for `arithmetic_side_effects` and now this PR actually uses them to prevent an eventual removal. All because rust-lang#115183 was recently merged and next Clippy update will probably take some time to happen. Fixes rust-lang/rust-clippy#11392
The
arithmetic_side_effects
lint is always "interning" these non-existing symbols related to math operations causing a bit of a slowdown.