From 2e754ba3d75e883299782e7b7215c866364ecd55 Mon Sep 17 00:00:00 2001 From: 5225225 <5225225@mailbox.org> Date: Sat, 16 Jul 2022 11:27:44 +0100 Subject: [PATCH] Rename debugging_opts to unstable_opts, use link --- src/mir/optimizations.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mir/optimizations.md b/src/mir/optimizations.md index add22c6f..f81f1886 100644 --- a/src/mir/optimizations.md +++ b/src/mir/optimizations.md @@ -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 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 -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 +[mir_opt_level]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_session/config/struct.UnstableOptions.html#structfield.mir_opt_level ## Optimization fuel