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

pub(in early) 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]

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

pub(in early) 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.

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

pub(in early) 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.