[−][src]Struct rustc_lint::late::LateContextAndPass

pub(in late) struct LateContextAndPass<'tcx, T: LateLintPass<'tcx>> {
    context: LateContext<'tcx>,
    pass: T,
}

Fields

context: LateContext<'tcx>pass: T

Implementations

impl<'tcx, T: LateLintPass<'tcx>> LateContextAndPass<'tcx, T>[src]

pub(in late) fn with_lint_attrs<F>(
    &mut self,
    id: HirId,
    attrs: &'tcx [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 late) fn with_param_env<F>(
    &mut self,
    id: HirId,
    f: F
) where
    F: FnOnce(&mut Self), 
[src]

pub(in late) fn process_mod(
    &mut self,
    m: &'tcx Mod<'tcx>,
    s: Span,
    n: HirId
)
[src]

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

pub(in late) fn exit_attrs(
    &mut self,
    attrs: &'tcx [Attribute]
)
[src]

Trait Implementations

impl<'tcx, T: LateLintPass<'tcx>> Visitor<'tcx> for LateContextAndPass<'tcx, T>[src]

type Map = Map<'tcx>

pub fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map>[src]

Because lints are scoped lexically, we want to walk nested items in the context of the outer item, so enable deep-walking.

Auto Trait Implementations

impl<'tcx, T> !RefUnwindSafe for LateContextAndPass<'tcx, T>

impl<'tcx, T> !Send for LateContextAndPass<'tcx, T>

impl<'tcx, T> !Sync for LateContextAndPass<'tcx, T>

impl<'tcx, T> Unpin for LateContextAndPass<'tcx, T> where
    T: Unpin, 

impl<'tcx, T> !UnwindSafe for LateContextAndPass<'tcx, 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.