Struct rustc_lint_defs::LintBuffer
source · pub struct LintBuffer {
pub map: NodeMap<Vec<BufferedEarlyLint>>,
}
Fields
map: NodeMap<Vec<BufferedEarlyLint>>
Implementations
sourceimpl 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<DiagnosticMessage>,
diagnostic: BuiltinLintDiagnostics
)
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<DiagnosticMessage>
)
pub fn buffer_lint_with_diagnostic(
&mut self,
lint: &'static Lint,
id: NodeId,
sp: impl Into<MultiSpan>,
msg: impl Into<DiagnosticMessage>,
diagnostic: BuiltinLintDiagnostics
)
Trait Implementations
sourceimpl Default for LintBuffer
impl Default for LintBuffer
sourcefn default() -> LintBuffer
fn default() -> LintBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LintBuffer
impl !Send for LintBuffer
impl !Sync for LintBuffer
impl Unpin for LintBuffer
impl UnwindSafe for LintBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 32 bytes