pub fn steal_diagnostic(&self, span: Span, key: StashKey) -> Option<DiagnosticBuilder<'_, ()>> {
        self.inner
            .borrow_mut()
            .stashed_diagnostics
            .remove(&(span, key))
            .map(|diag| DiagnosticBuilder::new_diagnostic(self, diag))
    }
/// Steal a previously stashed diagnostic with the given `Span` and `StashKey` as the key.
Steal a previously stashed diagnostic with the given `Span` and `StashKey` as the key.
Steal a previously stashed diagnostic with the given ` Span ` and ` StashKey ` as the key .
pub fn steal_diagnostic(&self, span: Span, key: StashKey) -> Option<DiagnosticBuilder<'_, ()>> {
        self.inner
            .borrow_mut()
            .stashed_diagnostics
            .remove(&(span, key))
            .map(|diag| DiagnosticBuilder::new_diagnostic(self, diag))
    }
pub fn steal_diagnostic ( & self , span : Span , key : StashKey ) -> Option < DiagnosticBuilder < ' _ , ( ) > > { self . inner . borrow_mut ( ) . stashed_diagnostics . remove ( & ( span , key ) ) . map ( | diag | DiagnosticBuilder :: new_diagnostic ( self , diag ) ) }
Steal a previously stashed diagnostic with the given `Span` and `StashKey` as the key.
Steal a previously stashed diagnostic with the given ` Span ` and ` StashKey ` as the key .
&self
span
Span
key
StashKey