Skip to content

Commit f80aeeb

Browse files
committed
Rename Session::span_diagnostic as Session::dcx.
1 parent 4e23761 commit f80aeeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diagnostics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)