Rename debugging_opts to unstable_opts, use link

This commit is contained in:
5225225 2022-07-16 11:27:44 +01:00 committed by Tshepang Mbambo
parent 0eb86d9bfe
commit 2e754ba3d7
1 changed files with 2 additions and 1 deletions

View File

@ -107,9 +107,10 @@ the pass. To enable working with slow or otherwise experimental optimization pas
you can specify the `-Z mir-opt-level` debug flag. You can find the you can specify the `-Z mir-opt-level` debug flag. You can find the
definitions of the levels in the [compiler MCP]. If you are developing a MIR pass and definitions of the levels in the [compiler MCP]. If you are developing a MIR pass and
want to query whether your optimization pass should run, you can check the want to query whether your optimization pass should run, you can check the
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].
[compiler MCP]: https://github.com/rust-lang/compiler-team/issues/319 [compiler MCP]: https://github.com/rust-lang/compiler-team/issues/319
[mir_opt_level]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/config/struct.UnstableOptions.html#structfield.mir_opt_level
## Optimization fuel ## Optimization fuel