Uh oh!
There was an error while loading. Please reload this page.
Implement PROBLEMATIC_CONSTS generalization - #115253
Conversation
rustbot
commented
Aug 26, 2023
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
This comment has been minimized.
This comment has been minimized.
dtolnay
left a comment
There was a problem hiding this comment.
Thanks!
Would it be possible to keep just the short list of root problematic consts, and then put your generate_problems logic into tidy, instead of expanding it all out like this?
That would be much more easily auditable.
donno2048
commented
Sep 17, 2023
@dtolnay I thought because the list is static it'd be better to make it hardcoded, wouldn't it? |
dtolnay
commented
Sep 17, 2023
I don't know a reason that it would need to be static. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
donno2048
commented
Sep 20, 2023
But also correct me if I'm wrong, but without using the |
PROBLEMATIC_CONSTSPROBLEMATIC_CONSTS generalization dtolnay
commented
Sep 27, 2023
Yes, good point. The regex approach ( I don't know the importance of looking for the decimal converted values. I have assigned back to @joshtriplett who created this lint originally. |
donno2048
commented
Sep 28, 2023
I think if we are ignoring some cases of |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
donno2048
commented
Apr 18, 2024
@rustbot review |
albertlarsan68
left a comment
There was a problem hiding this comment.
LGTM, thanks for the PR!
albertlarsan68
commented
Apr 19, 2024
@bors r+ |
bors
commented
Apr 19, 2024
bors
commented
Apr 19, 2024
bors
commented
Apr 19, 2024
☀️ Test successful - checks-actions |
rust-timer
commented
Apr 19, 2024
Finished benchmarking commit (43a0686): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 671.432s -> 673.234s (0.27%) |
View all comments
Better handling for problematic consts
The new
PROBLEMATIC_CONSTSwas generated using this code: