-
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
Clearly document intentional UB in mir-opt tests #107971
Conversation
The UB in all of these tests is intentional. Their goal is to test that despite the fact that Miri believes today that these tests have UB, the optimizations we do do not take advantage of that. I'd be happy to mark these tests as "no run" or "intentional Miri UB," but we should not change them. |
Yeah. I couldn't figure out what a single one of these tests was testing, which IME is typical of the mir-opt tests. |
Yeah I have that problem too. Blessing mir-opt tests can very easily completely destroy what they were intended to test. Cc #85180 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Jakob Degen <jakob.e.degen@gmail.com>
@bors r+ rollup |
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#107902 (fix: improve the suggestion on future not awaited) - rust-lang#107913 (Update broken link in cargo style guide) - rust-lang#107942 (Tighter spans for bad inherent `impl` self types) - rust-lang#107948 (Allow shortcuts to directories to be used for ./x.py fmt) - rust-lang#107971 (Clearly document intentional UB in mir-opt tests) - rust-lang#107985 (Added another error to be processed in fallback) - rust-lang#108002 (Update books) - rust-lang#108013 (rustdoc: use a string with one-character codes for search index types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
All of the changed mir-opt test input files did not pass Miri. Now they do.
r? @cjgillot because there's a CopyProp test in here that I do not fully understand