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.
1 parent b25b6ea commit bad7d36Copy full SHA for bad7d36
compiler/rustc_errors/src/lib.rs
@@ -1205,6 +1205,10 @@ impl<'a> DiagCtxtHandle<'a> {
1205
std::mem::take(&mut self.inner.borrow_mut().fulfilled_expectations)
1206
}
1207
1208
+ /// Trigger an ICE if there are any delayed bugs and no hard errors.
1209
+ ///
1210
+ /// This will panic if there are any stashed diagnostics. You can call
1211
+ /// `emit_stashed_diagnostics` to emit those before calling `flush_delayed`.
1212
pub fn flush_delayed(&self) {
1213
self.inner.borrow_mut().flush_delayed();
1214
0 commit comments