-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
new lint legacy_numeric_constants
#12312
Conversation
r? xFrednet since they reviewed the last one. Also, CC @Centri3 |
123be52
to
f605385
Compare
☔ The latest upstream changes (presumably #12306) made this pull request unmergeable. Please resolve the merge conflicts. |
…nstants, r=Nilstrieb Add diagnostic items for legacy numeric constants For rust-lang/rust-clippy#12312
…nstants, r=Nilstrieb Add diagnostic items for legacy numeric constants For rust-lang/rust-clippy#12312
Rollup merge of rust-lang#121272 - pitaj:diag_items-legacy_numeric_constants, r=Nilstrieb Add diagnostic items for legacy numeric constants For rust-lang/rust-clippy#12312
…nstants, r=Nilstrieb diagnostic items for legacy numeric modules For rust-lang/rust-clippy#12312 Missed these in rust-lang#121272 r? `@Nilstrieb`
Rollup merge of rust-lang#121361 - pitaj:diag_items-legacy_numeric_constants, r=Nilstrieb diagnostic items for legacy numeric modules For rust-lang/rust-clippy#12312 Missed these in rust-lang#121272 r? `@Nilstrieb`
Hey, thank you for picking this up. This is on my todo list for next week, you should have a review by Friday, the latest. :) |
…tants, r=Nilstrieb syms for legacy numeric constants diag items Missed these in rust-lang#121272 and rust-lang#121361, woops. For rust-lang/rust-clippy#12312 r? `@Nilstrieb`
…Nilstrieb syms for legacy numeric constants diag items Missed these in #121272 and #121361, woops. For rust-lang/rust-clippy#12312 r? `@Nilstrieb`
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.
The implementation looks good to me. I have two suggestions, where I would like to hear your thoughts about it. Once they've been discussed, this should be good to go.
And also thank you for your patience! The next review will be quicker :D
f605385
to
c5edb8e
Compare
Thanks for taking a look. It seems like the next toolchain update should be on the 7th, which should include all the necessary diagnostic items. I've made the changes you suggested, but wait to merge until I modify this to use the diag items. |
Welp, in working on the implementation I discovered that the diag items were still incomplete. So I guess we'll wait another two weeks 🙃 |
…nstants, r=Nilstrieb Fix legacy numeric constant diag items - missed syms for usize/isize - missed diag items on unsigned integers For rust-lang/rust-clippy#12312 r? `@Nilstrieb` Follow-up to rust-lang#121272, rust-lang#121361, rust-lang#121667 This should be the last one 🤞 Sorry!
…nstants, r=Nilstrieb Fix legacy numeric constant diag items - missed syms for usize/isize - missed diag items on unsigned integers For rust-lang/rust-clippy#12312 r? ``@Nilstrieb`` Follow-up to rust-lang#121272, rust-lang#121361, rust-lang#121667 This should be the last one 🤞 Sorry!
…nstants, r=Nilstrieb Fix legacy numeric constant diag items - missed syms for usize/isize - missed diag items on unsigned integers For rust-lang/rust-clippy#12312 r? ```@Nilstrieb``` Follow-up to rust-lang#121272, rust-lang#121361, rust-lang#121667 This should be the last one 🤞 Sorry!
Okay, good to know :D I'll mark this as waiting for you. Once the next update is ready, you can push the update, and it should show up in my inbox again. Otherwise, you can also always ping me :D @rustbot author |
Rollup merge of rust-lang#122271 - pitaj:diag_items-legacy_numeric_constants, r=Nilstrieb Fix legacy numeric constant diag items - missed syms for usize/isize - missed diag items on unsigned integers For rust-lang/rust-clippy#12312 r? ```@Nilstrieb``` Follow-up to rust-lang#121272, rust-lang#121361, rust-lang#121667 This should be the last one 🤞 Sorry!
☔ The latest upstream changes (presumably #12511) made this pull request unmergeable. Please resolve the merge conflicts. |
c9b5198
to
73ad96f
Compare
73ad96f
to
0c392d9
Compare
@rustbot ready |
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.
This version looks good to me. I love how almost 1/3 of the implementation lines are just diagnostic symbols :D
I have a tiny nit in the tests, and then we can merge this. You can r=me
after the next update.
@bors delegate+
Looks like bors commands still don't work in reviews... Let's try this again: @bors delegate+ |
Actually, let's not r+ it yet. I just remembered that |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Rework of #10997
use std::f32
)f32::MIN
I chose to make the float changes because the following pattern is actually pretty useful
and the float modules are not TBD-deprecated like the integer modules.
Closes #10995
changelog: New lint [
legacy_numeric_constants
]#12312