Struct rustc_lint::early::EarlyContextAndPass [−][src]
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_field_def(&mut self, s: &'a FieldDef)[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_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]
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_expr_field(&mut self, f: &'ast ExprField)[src]
pub fn visit_pat_field(&mut self, fp: &'ast PatField)[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>,