File tree 1 file changed +2
-1
lines changed
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
107
107
you can specify the ` -Z mir-opt-level ` debug flag. You can find the
108
108
definitions of the levels in the [ compiler MCP] . If you are developing a MIR pass and
109
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 ` .
110
+ current level using [ ` tcx.sess.opts.unstable_opts .mir_opt_level ` ] [ mir_opt_level ] .
111
111
112
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
113
114
114
115
## Optimization fuel
115
116
You can’t perform that action at this time.
0 commit comments