Skip to content

Conversation

c410-f3r
Copy link
Contributor

The arithmetic_side_effects lint is always "interning" these non-existing symbols related to math operations causing a bit of a slowdown.

@rustbot
Copy link
Collaborator

rustbot commented Aug 24, 2023

r? @jackh726

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 24, 2023
@compiler-errors
Copy link
Member

compiler-errors commented Aug 24, 2023

@c410-f3r: do you also want to modify arithmetic_side_effects in this same commit so that the new symbols aren't just left unused?

@c410-f3r
Copy link
Contributor Author

Thanks for the response @compiler-errors

Hum... The current Clippy code of rust-lang/rust is outdated so in order to avoid "dangling" symbols I think it is then better to wait for the next synchronization, which will probably happen in a few days.

@compiler-errors
Copy link
Member

I guess this is fine, but pls make sure to actually use them after the next clippy sync :)

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 24, 2023

📌 Commit c6ba5d9 has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 24, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 25, 2023
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
@bors bors merged commit eee76d9 into rust-lang:master Aug 25, 2023
@rustbot rustbot added this to the 1.74.0 milestone Aug 25, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 1, 2023
[`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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants