-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
read_via_copy: don't prematurely optimize away the read #115531
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
Something is broken with CI, everything fails with |
This comment has been minimized.
This comment has been minimized.
05af664
to
7093903
Compare
|
||
const BAD_BAD_ARRAY: [Bar; 1] = unsafe { MaybeUninit { uninit: () }.init }; | ||
//~^ ERROR evaluation of constant value failed | ||
//~| constructing invalid value | ||
|
||
|
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.
hyper-nit: extra blank lines in here
FYI @WaffleLapkin, who sortof-suggested removing the assignment in #109035 (comment) But this PR is a good answer for why it shouldn't be removed, so the change LGTM. @bors r+ |
⌛ Testing commit 7093903 with merge ac542f7fbb011f3811c032e3b3faa0642161a126... |
💔 Test failed - checks-actions |
@bors retry GitHub checkout failed |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
⌛ Testing commit 7093903 with merge c505b8b95e28731a9e5fac10c2dd2c959e6b80d3... |
A job failed! Check out the build log: (web) (plain) Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry GitHub checkout issue |
☀️ Test successful - checks-actions |
Finished benchmarking commit (626a6ab): comparison URL. Overall result: ✅ improvements - 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. CyclesResultsThis 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.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 628.296s -> 627.535s (-0.12%) |
Oops 😅 |
Always do the read to ensure consistent UB error messages in const-eval/Miri.
r? @scottmcm