File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -987,9 +987,10 @@ fn inline_call<'tcx, I: Inliner<'tcx>>(
987
987
. opts
988
988
. unstable_opts
989
989
. inline_mir_preserve_debug
990
- . unwrap_or ( tcx. sess . opts . debuginfo != DebugInfo :: None )
990
+ // only "full" promises any variable-level information
991
+ . unwrap_or ( self . opts . debuginfo == DebugInfo :: Full )
991
992
{
992
- // Note that we need to preserve these in the standard library so that
993
+ // -Zinline-mir-preserve-debug is enabled when building the standard library, so that
993
994
// people working on rust can build with or without debuginfo while
994
995
// still getting consistent results from the mir-opt tests.
995
996
caller_body. var_debug_info . append ( & mut callee_body. var_debug_info ) ;
You can’t perform that action at this time.
0 commit comments