Struct rustc::lint::builtin::HardwiredLints [−][src]
pub struct HardwiredLints;
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Does nothing as a lint pass, but registers some Lint
s
which are used by other parts of the compiler.
Trait Implementations
impl Copy for HardwiredLints
[src]
impl Copy for HardwiredLints
impl Clone for HardwiredLints
[src]
impl Clone for HardwiredLints
fn clone(&self) -> HardwiredLints
[src]
fn clone(&self) -> HardwiredLints
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl LintPass for HardwiredLints
[src]
impl LintPass for HardwiredLints
fn get_lints(&self) -> LintArray
[src]
fn get_lints(&self) -> LintArray
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Get descriptions of the lints this LintPass
object can emit. Read more
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for HardwiredLints
[src]
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for HardwiredLints
fn check_body(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Body)
[src]
fn check_body(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Body)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_body_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Body)
[src]
fn check_body_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Body)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_name(&mut self, &LateContext<'a, 'tcx>, _: Span, _: Name)
[src]
fn check_name(&mut self, &LateContext<'a, 'tcx>, _: Span, _: Name)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_crate(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Crate)
[src]
fn check_crate(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Crate)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_crate_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Crate)
[src]
fn check_crate_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Crate)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_mod(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Mod,
_: Span,
_: NodeId
)
[src]
fn check_mod(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Mod,
_: Span,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_mod_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Mod,
_: Span,
_: NodeId
)
[src]
fn check_mod_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Mod,
_: Span,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_foreign_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ForeignItem)
[src]
fn check_foreign_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ForeignItem)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_foreign_item_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx ForeignItem
)
[src]
fn check_foreign_item_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx ForeignItem
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Item)
[src]
fn check_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Item)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Item)
[src]
fn check_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Item)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_local(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Local)
[src]
fn check_local(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Local)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_block(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Block)
[src]
fn check_block(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Block)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_block_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Block)
[src]
fn check_block_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Block)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_stmt(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Stmt)
[src]
fn check_stmt(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Stmt)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_arm(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Arm)
[src]
fn check_arm(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Arm)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_pat(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Pat)
[src]
fn check_pat(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Pat)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_decl(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Decl)
[src]
fn check_decl(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Decl)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_expr(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Expr)
[src]
fn check_expr(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Expr)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_expr_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Expr)
[src]
fn check_expr_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Expr)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_ty(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Ty)
[src]
fn check_ty(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Ty)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_generic_param(&mut self, &LateContext<'a, 'tcx>, _: &'tcx GenericParam)
[src]
fn check_generic_param(&mut self, &LateContext<'a, 'tcx>, _: &'tcx GenericParam)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_generics(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Generics)
[src]
fn check_generics(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Generics)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_where_predicate(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx WherePredicate
)
[src]
fn check_where_predicate(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx WherePredicate
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_poly_trait_ref(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx PolyTraitRef,
_: TraitBoundModifier
)
[src]
fn check_poly_trait_ref(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx PolyTraitRef,
_: TraitBoundModifier
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_fn(
&mut self,
&LateContext<'a, 'tcx>,
_: FnKind<'tcx>,
_: &'tcx FnDecl,
_: &'tcx Body,
_: Span,
_: NodeId
)
[src]
fn check_fn(
&mut self,
&LateContext<'a, 'tcx>,
_: FnKind<'tcx>,
_: &'tcx FnDecl,
_: &'tcx Body,
_: Span,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_fn_post(
&mut self,
&LateContext<'a, 'tcx>,
_: FnKind<'tcx>,
_: &'tcx FnDecl,
_: &'tcx Body,
_: Span,
_: NodeId
)
[src]
fn check_fn_post(
&mut self,
&LateContext<'a, 'tcx>,
_: FnKind<'tcx>,
_: &'tcx FnDecl,
_: &'tcx Body,
_: Span,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_trait_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx TraitItem)
[src]
fn check_trait_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx TraitItem)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_trait_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx TraitItem)
[src]
fn check_trait_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx TraitItem)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_impl_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ImplItem)
[src]
fn check_impl_item(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ImplItem)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_impl_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ImplItem)
[src]
fn check_impl_item_post(&mut self, &LateContext<'a, 'tcx>, _: &'tcx ImplItem)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_struct_def(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx VariantData,
_: Name,
_: &'tcx Generics,
_: NodeId
)
[src]
fn check_struct_def(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx VariantData,
_: Name,
_: &'tcx Generics,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_struct_def_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx VariantData,
_: Name,
_: &'tcx Generics,
_: NodeId
)
[src]
fn check_struct_def_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx VariantData,
_: Name,
_: &'tcx Generics,
_: NodeId
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_struct_field(&mut self, &LateContext<'a, 'tcx>, _: &'tcx StructField)
[src]
fn check_struct_field(&mut self, &LateContext<'a, 'tcx>, _: &'tcx StructField)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_variant(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Variant,
_: &'tcx Generics
)
[src]
fn check_variant(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Variant,
_: &'tcx Generics
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_variant_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Variant,
_: &'tcx Generics
)
[src]
fn check_variant_post(
&mut self,
&LateContext<'a, 'tcx>,
_: &'tcx Variant,
_: &'tcx Generics
)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_lifetime(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Lifetime)
[src]
fn check_lifetime(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Lifetime)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_path(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Path, _: NodeId)
[src]
fn check_path(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Path, _: NodeId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn check_attribute(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Attribute)
[src]
fn check_attribute(&mut self, &LateContext<'a, 'tcx>, _: &'tcx Attribute)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn enter_lint_attrs(&mut self, &LateContext<'a, 'tcx>, _: &'tcx [Attribute])
[src]
fn enter_lint_attrs(&mut self, &LateContext<'a, 'tcx>, _: &'tcx [Attribute])
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn exit_lint_attrs(&mut self, &LateContext<'a, 'tcx>, _: &'tcx [Attribute])
[src]
fn exit_lint_attrs(&mut self, &LateContext<'a, 'tcx>, _: &'tcx [Attribute])
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Auto Trait Implementations
impl Send for HardwiredLints
impl Send for HardwiredLints
impl Sync for HardwiredLints
impl Sync for HardwiredLints