Re-exportsยง
use rustc_hir as hir;๐use rustc_hir::def_id::DefId;๐use rustc_hir::Expr;๐use rustc_hir::Stmt;๐use rustc_lint_defs::declare_lint;๐use rustc_lint_defs::declare_lint_pass;๐use rustc_lint_defs::fcw;๐use rustc_middle::ty::Mutability;๐use rustc_middle::ty::TyKind;๐use rustc_span::BytePos;๐use rustc_span::Span;๐use crate::diagnostics::MutRefSugg;๐use crate::diagnostics::RefOfMutStatic;๐use crate::diagnostics::StaticMutRefsInteriorMutabilitySugg;๐use crate::LateContext;๐use crate::LateLintPass;๐use crate::LintContext;๐
Structsยง
Staticsยง
- STATIC_
MUT_ REFS - The
static_mut_refslint checks for shared or mutable references of mutable static insideunsafeblocks andunsafefunctions.
Functionsยง
- emit_
static_ ๐mut_ refs - extend_
trailing_ ๐space - find_
word ๐ - interior_
mutability_ ๐suggestion - is_
ident_ ๐char - path_
is_ ๐static_ mut - static_
mutability_ ๐span