Skip to content

Commit 2e754ba

Browse files
5225225tshepang
authored andcommitted
Rename debugging_opts to unstable_opts, use link
1 parent 0eb86d9 commit 2e754ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/mir/optimizations.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,10 @@ the pass. To enable working with slow or otherwise experimental optimization pas
107107
you can specify the `-Z mir-opt-level` debug flag. You can find the
108108
definitions of the levels in the [compiler MCP]. If you are developing a MIR pass and
109109
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].
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

0 commit comments

Comments
 (0)