[−][src]Struct rustc_lint::builtin::UnsafeCode
Implementations
impl UnsafeCode[src]
impl UnsafeCode[src]
pub(in builtin) fn report_unsafe(
&self,
cx: &EarlyContext<'_>,
span: Span,
decorate: impl for<'a> FnOnce(LintDiagnosticBuilder<'a>)
)[src]
&self,
cx: &EarlyContext<'_>,
span: Span,
decorate: impl for<'a> FnOnce(LintDiagnosticBuilder<'a>)
)
Trait Implementations
impl Clone for UnsafeCode[src]
pub fn clone(&self) -> UnsafeCode[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for UnsafeCode[src]
impl EarlyLintPass for UnsafeCode[src]
pub fn check_attribute(&mut self, cx: &EarlyContext<'_>, attr: &Attribute)[src]
pub fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &Expr)[src]
pub fn check_item(&mut self, cx: &EarlyContext<'_>, it: &Item)[src]
pub fn check_fn(
&mut self,
cx: &EarlyContext<'_>,
fk: FnKind<'_>,
span: Span,
_: NodeId
)[src]
&mut self,
cx: &EarlyContext<'_>,
fk: FnKind<'_>,
span: Span,
_: NodeId
)
pub fn check_param(&mut self, _: &EarlyContext<'_>, _: &Param)[src]
pub fn check_ident(&mut self, _: &EarlyContext<'_>, _: Ident)[src]
pub fn check_crate(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]
pub fn check_crate_post(&mut self, _: &EarlyContext<'_>, _: &Crate)[src]
pub fn check_mod(&mut self, _: &EarlyContext<'_>, _: &Mod, _: Span, _: NodeId)[src]
pub fn check_mod_post(
&mut self,
_: &EarlyContext<'_>,
_: &Mod,
_: Span,
_: NodeId
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &Mod,
_: Span,
_: NodeId
)
pub fn check_foreign_item(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]
pub fn check_foreign_item_post(&mut self, _: &EarlyContext<'_>, _: &ForeignItem)[src]
pub fn check_item_post(&mut self, _: &EarlyContext<'_>, _: &Item)[src]
pub fn check_local(&mut self, _: &EarlyContext<'_>, _: &Local)[src]
pub fn check_block(&mut self, _: &EarlyContext<'_>, _: &Block)[src]
pub fn check_block_post(&mut self, _: &EarlyContext<'_>, _: &Block)[src]
pub fn check_stmt(&mut self, _: &EarlyContext<'_>, _: &Stmt)[src]
pub fn check_arm(&mut self, _: &EarlyContext<'_>, _: &Arm)[src]
pub fn check_pat(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]
pub fn check_anon_const(&mut self, _: &EarlyContext<'_>, _: &AnonConst)[src]
pub fn check_pat_post(&mut self, _: &EarlyContext<'_>, _: &Pat)[src]
pub fn check_expr_post(&mut self, _: &EarlyContext<'_>, _: &Expr)[src]
pub fn check_ty(&mut self, _: &EarlyContext<'_>, _: &Ty)[src]
pub fn check_generic_arg(&mut self, _: &EarlyContext<'_>, _: &GenericArg)[src]
pub fn check_generic_param(&mut self, _: &EarlyContext<'_>, _: &GenericParam)[src]
pub fn check_generics(&mut self, _: &EarlyContext<'_>, _: &Generics)[src]
pub fn check_where_predicate(
&mut self,
_: &EarlyContext<'_>,
_: &WherePredicate
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &WherePredicate
)
pub fn check_poly_trait_ref(
&mut self,
_: &EarlyContext<'_>,
_: &PolyTraitRef,
_: &TraitBoundModifier
)[src]
&mut self,
_: &EarlyContext<'_>,
_: &PolyTraitRef,
_: &TraitBoundModifier
)
pub fn check_fn_post(
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)[src]
&mut self,
_: &EarlyContext<'_>,
_: FnKind<'_>,
_: Span,
_: NodeId
)
pub fn check_trait_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_trait_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_impl_item(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_impl_item_post(&mut self, _: &EarlyContext<'_>, _: &AssocItem)[src]
pub fn check_struct_def(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]
pub fn check_struct_def_post(&mut self, _: &EarlyContext<'_>, _: &VariantData)[src]
pub fn check_struct_field(&mut self, _: &EarlyContext<'_>, _: &StructField)[src]
pub fn check_variant(&mut self, _: &EarlyContext<'_>, _: &Variant)[src]
pub fn check_variant_post(&mut self, _: &EarlyContext<'_>, _: &Variant)[src]
pub fn check_lifetime(&mut self, _: &EarlyContext<'_>, _: &Lifetime)[src]
pub fn check_path(&mut self, _: &EarlyContext<'_>, _: &Path, _: NodeId)[src]
pub fn check_mac_def(&mut self, _: &EarlyContext<'_>, _: &MacroDef, _: NodeId)[src]
pub fn check_mac(&mut self, _: &EarlyContext<'_>, _: &MacCall)[src]
pub fn enter_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]
pub fn exit_lint_attrs(&mut self, _: &EarlyContext<'_>, _: &[Attribute])[src]
impl LintPass for UnsafeCode[src]
Auto Trait Implementations
impl RefUnwindSafe for UnsafeCode
impl Send for UnsafeCode
impl Sync for UnsafeCode
impl Unpin for UnsafeCode
impl UnwindSafe for UnsafeCode
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,