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 Clone for HardwiredLints
[src]
fn clone(&self) -> HardwiredLints
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl LintPass for HardwiredLints
[src]
fn get_lints(&self) -> LintArray
[src]
🔬 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]
fn check_body(&mut self, _: &LateContext, _: &'tcx Body)
[src]
🔬 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, _: &'tcx Body)
[src]
🔬 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, _: Span, _: Name)
[src]
🔬 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]
🔬 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]
🔬 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]
&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]
&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]
&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]
&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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
🔬 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]
&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]
&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]
🔬 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]
&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]
🔬 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]
🔬 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]
&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]
&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]
&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]
&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]
&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]
🔬 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_def(
&mut self,
_: &LateContext<'a, 'tcx>,
_: &'tcx LifetimeDef
)
[src]
&mut self,
_: &LateContext<'a, 'tcx>,
_: &'tcx LifetimeDef
)
🔬 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]
🔬 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]
🔬 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]
🔬 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?
Called when entering a syntax node that can have lint attributes such as #[allow(...)]
. Called with all the attributes of that node. Read more
fn exit_lint_attrs(&mut self, _: &LateContext<'a, 'tcx>, _: &'tcx [Attribute])
[src]
🔬 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?
Counterpart to enter_lint_attrs
.