File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ pub fn report_error<'tcx, 'mir>(
384384
385385 // Include a note like `std` does when we omit frames from a backtrace
386386 if was_pruned {
387- ecx. tcx . sess . diagnostic ( ) . note (
387+ ecx. tcx . sess . dcx ( ) . note (
388388 "some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace" ,
389389 ) ;
390390 }
@@ -431,7 +431,7 @@ pub fn report_leaks<'mir, 'tcx>(
431431 ) ;
432432 }
433433 if any_pruned {
434- ecx. tcx . sess . diagnostic ( ) . note (
434+ ecx. tcx . sess . dcx ( ) . note (
435435 "some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace" ,
436436 ) ;
437437 }
@@ -456,7 +456,7 @@ pub fn report_msg<'tcx>(
456456 let mut err = match diag_level {
457457 DiagLevel :: Error => sess. struct_span_err ( span, title) . forget_guarantee ( ) ,
458458 DiagLevel :: Warning => sess. struct_span_warn ( span, title) ,
459- DiagLevel :: Note => sess. diagnostic ( ) . struct_span_note ( span, title) ,
459+ DiagLevel :: Note => sess. dcx ( ) . struct_span_note ( span, title) ,
460460 } ;
461461
462462 // Show main message.
You can’t perform that action at this time.
0 commit comments