-
Notifications
You must be signed in to change notification settings - Fork 1.6k
remove superseded lints #14703
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
base: master
Are you sure you want to change the base?
remove superseded lints #14703
Conversation
Failed to set assignee to
|
aa7385a
to
483ce48
Compare
When uplifting lints please run |
42cf9e2
to
57d6333
Compare
This comment has been minimized.
This comment has been minimized.
330e23d
to
177dc67
Compare
6ed70fc
to
6f5bf0f
Compare
@bend-n Anything I can help with in order to merge this (I noticed it's still in draft)? Could you run |
@samueltardieu |
Any reason to want to put this into the same PR, while there are two PRs on the compiler side? If your second compiler PR is not merged before tomorrow, then it won't be in Rust 1.88 while your first compiler PR would be. It means that, in Clippy, we would have to backport only the deprecation of This is why having two PRs, to match the compiler changes, might make things easier to keep Clippy lints deprecation in sync. |
well if this gets merged today then transmute_int_to_bool will be in both clippy and rustc in 1.88, is that what we want? |
6f5bf0f
to
f51c29b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the unnecessary_transmutes
compiler builtin lint does not lint for signed integer to float and vice-versa, while this was linted by Clippy. Removing the lints will lose functionality. Maybe the lints should be modified instead of being uplifted to handle only those cases involving signed integers.
The same thing is true for transmuting a i32
to a char
: there is no compiler warning there, so the corresponding lint should probably be kept in Clippy for this case.
Also, it looks like this patch removes the code for the transmute_num_to_bytes
lint, as this is also linted by the compiler, but does not remove it properly nor does it talk about it in the PR changelog. It looks like this is the only Clippy lint which is completely covered by the unnecessary_transmutes
compiler lint, so probably the only one which should be uplifted.
changelog: [
transmute_float_to_int, transmute_int_to_char, transmute_int_to_float
]: remove lints, now in rustcthese lints are now mostly in rustc, so they dont need to be in clippy anymore
rust-lang/rust#136083 (comment)
pending rust-lang/rust#140431: transmute_int_to_bool
Summary Notes
Generated by triagebot, see help for how to add more