]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_cranelift/src/debuginfo/line_info.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / compiler / rustc_codegen_cranelift / src / debuginfo / line_info.rs
index 476d6a54e125658d9ec2568a4cd861298bcabe9e..bbcb9591373dd7192f2e8b7f05a1063fbd0ed348 100644 (file)
@@ -140,7 +140,7 @@ impl<'tcx> DebugContext<'tcx> {
             // In order to have a good line stepping behavior in debugger, we overwrite debug
             // locations of macro expansions with that of the outermost expansion site
             // (unless the crate is being compiled with `-Z debug-macros`).
-            let span = if !span.from_expansion() || tcx.sess.opts.debugging_opts.debug_macros {
+            let span = if !span.from_expansion() || tcx.sess.opts.unstable_opts.debug_macros {
                 span
             } else {
                 // Walk up the macro expansion chain until we reach a non-expanded span.