Test that the compiler/library builds with -Zmir-opt-level=3 -Zvalidate-mir #105706
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
A-testsuite
Area: The testsuite used to check the correctness of rustc
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Uh oh!
There was an error while loading. Please reload this page.
Because currently it doesn't.
-Zmir-opt-level=3
has a handful of problems which are reported elsewhere, but discovering problems with MIR optimizations is often as simple as building the compiler with the optimization enabled and-Zvalidate-mir
. So we should do that in CI.Note that all MIR opt levels are supposed to be sound, and known unsoundness is supposed to be gated behind
-Zunsound-mir-opts
, which I am not suggesting we test with.Currently attempting to build the standard library with these flags results in pages of this error:
Which looks to me like #105428
The text was updated successfully, but these errors were encountered: