-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Move as many tests from tests/ui/numbers-arithmetic to tests/ui/lint as possible #121432
Conversation
r? @nnethercote rustbot has assigned @nnethercote. Use r? to explicitly pick a reviewer |
#![allow(arithmetic_overflow)] | ||
|
||
fn main() { | ||
let _x = -i8::MIN; |
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.
I think this one was missed?
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.
Otherwise, everything else looks ok.
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.
isn't that one on line 225/226?
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.
True! Not sure how I overlooked that.
6a6aba5
to
8adaa46
Compare
This comment has been minimized.
This comment has been minimized.
8adaa46
to
669f891
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (dda102c): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
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: 650.172s -> 650.47s (0.05%) |
…li-obk lint-overflowing-ops: unify cases and remove redundancy Follow-up to rust-lang#121432 r? `@oli-obk`
Rollup merge of rust-lang#121510 - RalfJung:lint-overflowing-ops, r=oli-obk lint-overflowing-ops: unify cases and remove redundancy Follow-up to rust-lang#121432 r? `@oli-obk`
Fixes #119851 , and also consolidates as many individual tests as possible from numbers-arithmetic. I might have moved the tests in too aggressively, so let me know