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>(
384
384
385
385
// Include a note like `std` does when we omit frames from a backtrace
386
386
if was_pruned {
387
- ecx. tcx . sess . diagnostic ( ) . note (
387
+ ecx. tcx . sess . dcx ( ) . note (
388
388
"some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace" ,
389
389
) ;
390
390
}
@@ -431,7 +431,7 @@ pub fn report_leaks<'mir, 'tcx>(
431
431
) ;
432
432
}
433
433
if any_pruned {
434
- ecx. tcx . sess . diagnostic ( ) . note (
434
+ ecx. tcx . sess . dcx ( ) . note (
435
435
"some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace" ,
436
436
) ;
437
437
}
@@ -456,7 +456,7 @@ pub fn report_msg<'tcx>(
456
456
let mut err = match diag_level {
457
457
DiagLevel :: Error => sess. struct_span_err ( span, title) . forget_guarantee ( ) ,
458
458
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) ,
460
460
} ;
461
461
462
462
// Show main message.
You can’t perform that action at this time.
0 commit comments