about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc')
m---------src/doc/embedded-book0
m---------src/doc/rust-by-example0
-rw-r--r--src/doc/unstable-book/src/compiler-flags/unsound-mir-opts.md8
3 files changed, 8 insertions, 0 deletions
diff --git a/src/doc/embedded-book b/src/doc/embedded-book
-Subproject 0cd2ca116274b915924c3a7e07c1e046b6f19b7
+Subproject dd310616308e01f6cf227f46347b744aa56b77d
diff --git a/src/doc/rust-by-example b/src/doc/rust-by-example
-Subproject 19f0a0372af497b34369cf182d9d16156cab296
+Subproject 7d3ff1c12db08a847a57a054be4a7951ce532d2
diff --git a/src/doc/unstable-book/src/compiler-flags/unsound-mir-opts.md b/src/doc/unstable-book/src/compiler-flags/unsound-mir-opts.md
new file mode 100644
index 00000000000..8e46e227c25
--- /dev/null
+++ b/src/doc/unstable-book/src/compiler-flags/unsound-mir-opts.md
@@ -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