Struct rustc_lint::early::EarlyContextAndPass [−][src]
struct EarlyContextAndPass<'a, T: EarlyLintPass> {
context: EarlyContext<'a>,
pass: T,
}
Fields
context: EarlyContext<'a>
pass: T
Implementations
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.
Trait Implementations
fn visit_enum_def(
&mut self,
enum_definition: &'ast EnumDef,
generics: &'ast Generics,
item_id: NodeId,
Span
)
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
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.