[−][src]Struct rustc_lint::early::EarlyContextAndPass
Fields
context: EarlyContext<'a>pass: TImplementations
impl<'a, T: EarlyLintPass> EarlyContextAndPass<'a, T>[src]
pub(in early) fn check_id(
&mut self,
id: NodeId
)[src]
&mut self,
id: NodeId
)
pub(in early) fn with_lint_attrs<F>(
&mut self,
id: NodeId,
attrs: &'a [Attribute],
f: F
) where
F: FnOnce(&mut Self), [src]
&mut self,
id: NodeId,
attrs: &'a [Attribute],
f: F
) where
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.
pub(in early) fn enter_attrs(
&mut self,
attrs: &'a [Attribute]
)[src]
&mut self,
attrs: &'a [Attribute]
)
pub(in early) fn exit_attrs(
&mut self,
attrs: &'a [Attribute]
)[src]
&mut self,
attrs: &'a [Attribute]
)
Trait Implementations
impl<'a, T: EarlyLintPass> Visitor<'a> for EarlyContextAndPass<'a, T>[src]
pub fn visit_param(&mut self, param: &'a Param)[src]
pub fn visit_item(&mut self, it: &'a Item)[src]
pub fn visit_foreign_item(&mut self, it: &'a ForeignItem)[src]
pub fn visit_pat(&mut self, p: &'a Pat)[src]
pub fn visit_anon_const(&mut self, c: &'a AnonConst)[src]
pub fn visit_expr(&mut self, e: &'a Expr)[src]
pub fn visit_stmt(&mut self, s: &'a Stmt)[src]
pub fn visit_fn(&mut self, fk: FnKind<'a>, span: Span, id: NodeId)[src]
pub fn visit_variant_data(&mut self, s: &'a VariantData)[src]
pub fn visit_struct_field(&mut self, s: &'a StructField)[src]
pub fn visit_variant(&mut self, v: &'a Variant)[src]
pub fn visit_ty(&mut self, t: &'a Ty)[src]
pub fn visit_ident(&mut self, ident: Ident)[src]
pub fn visit_mod(&mut self, m: &'a Mod, s: Span, _a: &[Attribute], n: NodeId)[src]
pub fn visit_local(&mut self, l: &'a Local)[src]
pub fn visit_block(&mut self, b: &'a Block)[src]
pub fn visit_arm(&mut self, a: &'a Arm)[src]
pub fn visit_expr_post(&mut self, e: &'a Expr)[src]
pub fn visit_generic_arg(&mut self, arg: &'a GenericArg)[src]
pub fn visit_generic_param(&mut self, param: &'a GenericParam)[src]
pub fn visit_generics(&mut self, g: &'a Generics)[src]
pub fn visit_where_predicate(&mut self, p: &'a WherePredicate)[src]
pub fn visit_poly_trait_ref(
&mut self,
t: &'a PolyTraitRef,
m: &'a TraitBoundModifier
)[src]
&mut self,
t: &'a PolyTraitRef,
m: &'a TraitBoundModifier
)
pub fn visit_assoc_item(&mut self, item: &'a AssocItem, ctxt: AssocCtxt)[src]
pub fn visit_lifetime(&mut self, lt: &'a Lifetime)[src]
pub fn visit_path(&mut self, p: &'a Path, id: NodeId)[src]
pub fn visit_attribute(&mut self, attr: &'a Attribute)[src]
pub fn visit_mac_def(&mut self, mac: &'a MacroDef, id: NodeId)[src]
pub fn visit_mac_call(&mut self, mac: &'a MacCall)[src]
pub fn visit_name(&mut self, _span: Span, _name: Symbol)[src]
pub fn visit_global_asm(&mut self, ga: &'ast GlobalAsm)[src]
pub fn visit_trait_ref(&mut self, t: &'ast TraitRef)[src]
pub fn visit_param_bound(&mut self, bounds: &'ast GenericBound)[src]
pub 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
)
pub fn visit_label(&mut self, label: &'ast Label)[src]
pub fn visit_use_tree(
&mut self,
use_tree: &'ast UseTree,
id: NodeId,
_nested: bool
)[src]
&mut self,
use_tree: &'ast UseTree,
id: NodeId,
_nested: bool
)
pub fn visit_path_segment(
&mut self,
path_span: Span,
path_segment: &'ast PathSegment
)[src]
&mut self,
path_span: Span,
path_segment: &'ast PathSegment
)
pub fn visit_generic_args(
&mut self,
path_span: Span,
generic_args: &'ast GenericArgs
)[src]
&mut self,
path_span: Span,
generic_args: &'ast GenericArgs
)
pub fn visit_assoc_ty_constraint(&mut self, constraint: &'ast AssocTyConstraint)[src]
pub fn visit_vis(&mut self, vis: &'ast Visibility)[src]
pub fn visit_fn_ret_ty(&mut self, ret_ty: &'ast FnRetTy)[src]
pub fn visit_fn_header(&mut self, _header: &'ast FnHeader)[src]
pub fn visit_field(&mut self, f: &'ast Field)[src]
pub 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>,