[−][src]Struct rustc_lint::early::EarlyContextAndPass
Fields
context: EarlyContext<'a>pass: TImplementations
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]
F: FnOnce(&mut Self),
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]
fn visit_param(&mut self, param: &'a Param)[src]
fn visit_item(&mut self, it: &'a Item)[src]
fn visit_foreign_item(&mut self, it: &'a ForeignItem)[src]
fn visit_pat(&mut self, p: &'a Pat)[src]
fn visit_anon_const(&mut self, c: &'a AnonConst)[src]
fn visit_expr(&mut self, e: &'a Expr)[src]
fn visit_stmt(&mut self, s: &'a Stmt)[src]
fn visit_fn(&mut self, fk: FnKind<'a>, span: Span, id: NodeId)[src]
fn visit_variant_data(&mut self, s: &'a VariantData)[src]
fn visit_struct_field(&mut self, s: &'a StructField)[src]
fn visit_variant(&mut self, v: &'a Variant)[src]
fn visit_ty(&mut self, t: &'a Ty)[src]
fn visit_ident(&mut self, ident: Ident)[src]
fn visit_mod(&mut self, m: &'a Mod, s: Span, _a: &[Attribute], n: NodeId)[src]
fn visit_local(&mut self, l: &'a Local)[src]
fn visit_block(&mut self, b: &'a Block)[src]
fn visit_arm(&mut self, a: &'a Arm)[src]
fn visit_expr_post(&mut self, e: &'a Expr)[src]
fn visit_generic_arg(&mut self, arg: &'a GenericArg)[src]
fn visit_generic_param(&mut self, param: &'a GenericParam)[src]
fn visit_generics(&mut self, g: &'a Generics)[src]
fn visit_where_predicate(&mut self, p: &'a WherePredicate)[src]
fn visit_poly_trait_ref(
&mut self,
t: &'a PolyTraitRef,
m: &'a TraitBoundModifier
)[src]
&mut self,
t: &'a PolyTraitRef,
m: &'a TraitBoundModifier
)
fn visit_assoc_item(&mut self, item: &'a AssocItem, ctxt: AssocCtxt)[src]
fn visit_lifetime(&mut self, lt: &'a Lifetime)[src]
fn visit_path(&mut self, p: &'a Path, id: NodeId)[src]
fn visit_attribute(&mut self, attr: &'a Attribute)[src]
fn visit_mac_def(&mut self, mac: &'a MacroDef, id: NodeId)[src]
fn visit_mac_call(&mut self, mac: &'a MacCall)[src]
fn visit_name(&mut self, _span: Span, _name: Symbol)[src]
fn visit_global_asm(&mut self, ga: &'ast GlobalAsm)[src]
fn visit_trait_ref(&mut self, t: &'ast TraitRef)[src]
fn visit_param_bound(&mut self, bounds: &'ast GenericBound)[src]
fn visit_enum_def(
&mut self,
enum_definition: &'ast EnumDef,
generics: &'ast Generics,
item_id: NodeId,
Span
)[src]
&mut self,
enum_definition: &'ast EnumDef,
generics: &'ast Generics,
item_id: NodeId,
Span
)
fn visit_label(&mut self, label: &'ast Label)[src]
fn visit_use_tree(&mut self, use_tree: &'ast UseTree, id: NodeId, _nested: bool)[src]
fn visit_path_segment(
&mut self,
path_span: Span,
path_segment: &'ast PathSegment
)[src]
&mut self,
path_span: Span,
path_segment: &'ast PathSegment
)
fn visit_generic_args(
&mut self,
path_span: Span,
generic_args: &'ast GenericArgs
)[src]
&mut self,
path_span: Span,
generic_args: &'ast GenericArgs
)
fn visit_assoc_ty_constraint(&mut self, constraint: &'ast AssocTyConstraint)[src]
fn visit_vis(&mut self, vis: &'ast Visibility)[src]
fn visit_fn_ret_ty(&mut self, ret_ty: &'ast FnRetTy)[src]
fn visit_fn_header(&mut self, _header: &'ast FnHeader)[src]
fn visit_field(&mut self, f: &'ast Field)[src]
fn visit_field_pattern(&mut self, fp: &'ast FieldPat)[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,
T: Unpin,
impl<'a, T> !UnwindSafe for EarlyContextAndPass<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,