mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
flush_delayed: add note about stashed diagnostics
This commit is contained in:
@@ -1205,6 +1205,10 @@ pub fn steal_fulfilled_expectation_ids(&self) -> FxIndexSet<LintExpectationId> {
|
||||
std::mem::take(&mut self.inner.borrow_mut().fulfilled_expectations)
|
||||
}
|
||||
|
||||
/// Trigger an ICE if there are any delayed bugs and no hard errors.
|
||||
///
|
||||
/// This will panic if there are any stashed diagnostics. You can call
|
||||
/// `emit_stashed_diagnostics` to emit those before calling `flush_delayed`.
|
||||
pub fn flush_delayed(&self) {
|
||||
self.inner.borrow_mut().flush_delayed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user