File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
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_without_error (
387
+ ecx. tcx . sess . diagnostic ( ) . 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_without_error (
434
+ ecx. tcx . sess . diagnostic ( ) . note (
435
435
"some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace" ,
436
436
) ;
437
437
}
Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ pub fn eval_entry<'tcx>(
464
464
// Check for thread leaks.
465
465
if !ecx. have_all_terminated ( ) {
466
466
tcx. sess . err ( "the main thread terminated without waiting for all remaining threads" ) ;
467
- tcx. sess . note_without_error ( "pass `-Zmiri-ignore-leaks` to disable this check" ) ;
467
+ tcx. sess . note ( "pass `-Zmiri-ignore-leaks` to disable this check" ) ;
468
468
return None ;
469
469
}
470
470
// Check for memory leaks.
@@ -475,7 +475,7 @@ pub fn eval_entry<'tcx>(
475
475
let leak_message = "the evaluated program leaked memory, pass `-Zmiri-ignore-leaks` to disable this check" ;
476
476
if ecx. machine . collect_leak_backtraces {
477
477
// If we are collecting leak backtraces, each leak is a distinct error diagnostic.
478
- tcx. sess . note_without_error ( leak_message) ;
478
+ tcx. sess . note ( leak_message) ;
479
479
} else {
480
480
// If we do not have backtraces, we just report an error without any span.
481
481
tcx. sess . err ( leak_message) ;
You can’t perform that action at this time.
0 commit comments