We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb86d9 commit 2e754baCopy full SHA for 2e754ba
src/mir/optimizations.md
@@ -107,9 +107,10 @@ the pass. To enable working with slow or otherwise experimental optimization pas
107
you can specify the `-Z mir-opt-level` debug flag. You can find the
108
definitions of the levels in the [compiler MCP]. If you are developing a MIR pass and
109
want to query whether your optimization pass should run, you can check the
110
-current level using `tcx.sess.opts.debugging_opts.mir_opt_level`.
+current level using [`tcx.sess.opts.unstable_opts.mir_opt_level`][mir_opt_level].
111
112
[compiler MCP]: https://github.com/rust-lang/compiler-team/issues/319
113
+[mir_opt_level]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/config/struct.UnstableOptions.html#structfield.mir_opt_level
114
115
## Optimization fuel
116
0 commit comments