[][src]Struct rustc_ap_rustc_session::lint::LintBuffer

pub struct LintBuffer {
    pub map: NodeMap<Vec<BufferedEarlyLint>>,
}

Fields

map: NodeMap<Vec<BufferedEarlyLint>>

Methods

impl LintBuffer[src]

pub fn add_early_lint(&mut self, early_lint: BufferedEarlyLint)[src]

pub fn add_lint(
    &mut self,
    lint: &'static Lint,
    node_id: NodeId,
    span: MultiSpan,
    msg: &str,
    diagnostic: BuiltinLintDiagnostics
)
[src]

pub fn take(&mut self, id: NodeId) -> Vec<BufferedEarlyLint>[src]

pub fn buffer_lint(
    &mut self,
    lint: &'static Lint,
    id: NodeId,
    sp: impl Into<MultiSpan>,
    msg: &str
)
[src]

pub fn buffer_lint_with_diagnostic(
    &mut self,
    lint: &'static Lint,
    id: NodeId,
    sp: impl Into<MultiSpan>,
    msg: &str,
    diagnostic: BuiltinLintDiagnostics
)
[src]

Trait Implementations

impl Default for LintBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<E> SpecializationError for E[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.