Skip to content
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

Clippy: consider msrv for const context for const_float_bits_conv #130305

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

tspiteri
Copy link
Contributor

When const_float_bits_conv was stabilized for 1.83.0, clippy lints started to be triggered in const context ignoring MSRV. This PR makes the lints trigger in const context only when the MSRV meets 1.83.0.

Fixes rust-lang/rust-clippy#13383.

@rustbot
Copy link
Collaborator

rustbot commented Sep 13, 2024

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 13, 2024
@rustbot
Copy link
Collaborator

rustbot commented Sep 13, 2024

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@tspiteri tspiteri force-pushed the clippy-msrv-for-const_float_bits_conv branch from 9d6186f to 581f192 Compare September 13, 2024 11:57
@flip1995
Copy link
Member

Thanks for the contribution and good catch!

Please open this PR in the Clippy repo. Opening here just makes release management and syncing more difficult. This PR will get synced to this repo in time, so that this bug doesn't land in 1.83.0 stable.

@tspiteri
Copy link
Contributor Author

tspiteri commented Sep 13, 2024

I cannot open this in the clippy repo yet as the change introducing the issue has not landed in the clippy repo yet. Should I wait for the issue to get synced into clippy and open the PR there after the sync?

@flip1995
Copy link
Member

I really thought I saw that PR getting merged, before I did the sync. But you're right. In that case, it won't hurt the sync if we merge the PR here, as a follow up to the stabilization.

r? @flip1995

@bors r+

@bors
Copy link
Contributor

bors commented Sep 13, 2024

📌 Commit 581f192 has been approved by flip1995

It is now in the queue for this repository.

@rustbot rustbot assigned flip1995 and unassigned Mark-Simulacrum Sep 13, 2024
@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 Sep 13, 2024
@flip1995
Copy link
Member

@bors rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 13, 2024
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#129320 (Fix crash when labeling arguments for call_once and friends)
 - rust-lang#130266 (target: default to the medium code model on LoongArch targets)
 - rust-lang#130297 (Dataflow cleanups)
 - rust-lang#130299 (Add set_dcx to ParseSess)
 - rust-lang#130301 (some fixes for clashing_extern_declarations lint)
 - rust-lang#130305 (Clippy: consider msrv for const context for const_float_bits_conv)

r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 13, 2024
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#129320 (Fix crash when labeling arguments for call_once and friends)
 - rust-lang#130266 (target: default to the medium code model on LoongArch targets)
 - rust-lang#130297 (Dataflow cleanups)
 - rust-lang#130299 (Add set_dcx to ParseSess)
 - rust-lang#130301 (some fixes for clashing_extern_declarations lint)
 - rust-lang#130305 (Clippy: consider msrv for const context for const_float_bits_conv)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 5343fcd into rust-lang:master Sep 13, 2024
6 checks passed
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 13, 2024
Rollup merge of rust-lang#130305 - tspiteri:clippy-msrv-for-const_float_bits_conv, r=flip1995

Clippy: consider msrv for const context for const_float_bits_conv

When `const_float_bits_conv` was stabilized for 1.83.0, clippy lints started to be triggered in const context ignoring MSRV. This PR makes the lints trigger in const context only when the MSRV meets 1.83.0.

Fixes rust-lang/rust-clippy#13383.
@rustbot rustbot added this to the 1.83.0 milestone Sep 13, 2024
@tspiteri tspiteri deleted the clippy-msrv-for-const_float_bits_conv branch September 14, 2024 09:09
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.
Projects
None yet
5 participants