Struct rustc_lint_defs::LintBuffer
source · pub struct LintBuffer {
pub map: FxIndexMap<NodeId, Vec<BufferedEarlyLint>>,
}
Fields§
§map: FxIndexMap<NodeId, Vec<BufferedEarlyLint>>
Implementations§
source§impl LintBuffer
impl LintBuffer
pub fn add_early_lint(&mut self, early_lint: BufferedEarlyLint)
pub fn add_lint( &mut self, lint: &'static Lint, node_id: NodeId, span: MultiSpan, msg: impl Into<DiagMessage>, diagnostic: BuiltinLintDiag )
pub fn take(&mut self, id: NodeId) -> Vec<BufferedEarlyLint>
pub fn buffer_lint( &mut self, lint: &'static Lint, id: NodeId, sp: impl Into<MultiSpan>, msg: impl Into<DiagMessage> )
pub fn buffer_lint_with_diagnostic( &mut self, lint: &'static Lint, id: NodeId, sp: impl Into<MultiSpan>, msg: impl Into<DiagMessage>, diagnostic: BuiltinLintDiag )
Trait Implementations§
source§impl Debug for LintBuffer
impl Debug for LintBuffer
source§impl Default for LintBuffer
impl Default for LintBuffer
source§fn default() -> LintBuffer
fn default() -> LintBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl DynSend for LintBuffer
impl DynSync for LintBuffer
impl Freeze for LintBuffer
impl RefUnwindSafe for LintBuffer
impl Send for LintBuffer
impl Sync for LintBuffer
impl Unpin for LintBuffer
impl UnwindSafe for LintBuffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Filterable for T
impl<T> Filterable for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes