This commit is contained in:
Ralf Jung 2022-02-25 12:05:59 -05:00
parent 538aedf099
commit ddd3e3c4e0
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
3d127e2040b57157936f5f24e114a8b4c9a505ef
d4de1f230ca30b7ce08fbf453daebf8b2e7ffcc9

View File

@ -254,7 +254,7 @@ fn report_msg<'tcx>(
) {
let span = stacktrace.first().map_or(DUMMY_SP, |fi| fi.span);
let mut err = match diag_level {
DiagLevel::Error => tcx.sess.struct_span_err(span, title),
DiagLevel::Error => tcx.sess.struct_span_err(span, title).forget_guarantee(),
DiagLevel::Warning => tcx.sess.struct_span_warn(span, title),
DiagLevel::Note => tcx.sess.diagnostic().span_note_diag(span, title),
};