We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
downgrade_to_delayed_bug
1 parent e8c3cbf commit 5dd0431Copy full SHA for 5dd0431
compiler/rustc_errors/src/diagnostic.rs
@@ -306,7 +306,7 @@ impl Diagnostic {
306
#[track_caller]
307
pub fn downgrade_to_delayed_bug(&mut self) {
308
assert!(
309
- self.is_error(),
+ matches!(self.level, Level::Error | Level::DelayedBug(_)),
310
"downgrade_to_delayed_bug: cannot downgrade {:?} to DelayedBug: not an error",
311
self.level
312
);
0 commit comments