We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b2c53a commit 5126465Copy full SHA for 5126465
compiler/rustc_errors/src/lib.rs
@@ -768,13 +768,7 @@ impl DiagCtxt {
768
format!("invalid level in `stash_diagnostic`: {:?}", diag.level),
769
);
770
}
771
- Error => {
772
- // This `unchecked_error_guaranteed` is valid. It is where the
773
- // `ErrorGuaranteed` for stashed errors originates. See
774
- // `DiagCtxtInner::drop`.
775
- #[allow(deprecated)]
776
- Some(ErrorGuaranteed::unchecked_error_guaranteed())
777
- }
+ Error => Some(self.span_delayed_bug(span, "stashing {key:?}")),
778
DelayedBug => return self.inner.borrow_mut().emit_diagnostic(diag),
779
ForceWarning(_) | Warning | Note | OnceNote | Help | OnceHelp | FailureNote | Allow
780
| Expect(_) => None,
0 commit comments