Struct rustc_lint::early::EarlyContextAndPass[−][src]

struct EarlyContextAndPass<'a, T: EarlyLintPass> {
    context: EarlyContext<'a>,
    pass: T,
}

Fields

context: EarlyContext<'a>pass: T

Implementations

impl<'a, T: EarlyLintPass> EarlyContextAndPass<'a, T>[src]

fn check_id(&mut self, id: NodeId)[src]

fn with_lint_attrs<F>(&mut self, id: NodeId, attrs: &'a [Attribute], f: F) where
    F: FnOnce(&mut Self), 
[src]

Merge the lints specified by any lint attributes into the current lint context, call the provided function, then reset the lints in effect to their previous state.

fn enter_attrs(&mut self, attrs: &'a [Attribute])[src]

fn exit_attrs(&mut self, attrs: &'a [Attribute])[src]

Trait Implementations

impl<'a, T: EarlyLintPass> Visitor<'a> for EarlyContextAndPass<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for EarlyContextAndPass<'a, T>

impl<'a, T> !Send for EarlyContextAndPass<'a, T>

impl<'a, T> !Sync for EarlyContextAndPass<'a, T>

impl<'a, T> Unpin for EarlyContextAndPass<'a, T> where
    T: Unpin, 

impl<'a, T> !UnwindSafe for EarlyContextAndPass<'a, T>

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.