File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -107,9 +107,10 @@ the pass. To enable working with slow or otherwise experimental optimization pas
107107you can specify the ` -Z mir-opt-level ` debug flag. You can find the
108108definitions of the levels in the [ compiler MCP] . If you are developing a MIR pass and
109109want to query whether your optimization pass should run, you can check the
110- current level using ` tcx.sess.opts.debugging_opts .mir_opt_level ` .
110+ current level using [ ` tcx.sess.opts.unstable_opts .mir_opt_level ` ] [ mir_opt_level ] .
111111
112112[ 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
113114
114115## Optimization fuel
115116
You can’t perform that action at this time.
0 commit comments