Add unstable book docs for -Zunsound-mir-opts

This commit is contained in:
Wesley Wiser 2020-09-28 22:48:07 -04:00 committed by GitHub
parent fc2daaae61
commit 63bb51d3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,8 @@
# `unsound-mir-opts`
--------------------
The `-Zunsound-mir-opts` compiler flag enables [MIR optimization passes] which can cause unsound behavior.
This flag should only be used by MIR optimization tests in the rustc test suite.
[MIR optimization passes]: https://rustc-dev-guide.rust-lang.org/mir/optimizations.html