Re-exportsยง
use rustc_attr_ir::lang_items::LangItem;๐use rustc_hir as hir;๐use rustc_hir::AmbigArg;๐use rustc_lint_defs::declare_lint;๐use rustc_lint_defs::declare_lint_pass;๐use rustc_span::sym;๐use crate::diagnostics::DropGlue;๐use crate::diagnostics::DropTraitConstraintsDiag;๐use crate::LateContext;๐use crate::LateLintPass;๐use crate::LintContext;๐
Structsยง
- Drop
Trait Constraints - Lint for bounds of the form
T: Drop, which usually indicate an attempt to emulatestd::mem::needs_drop.
Staticsยง
- DROP_
BOUNDS - The
drop_boundslint checks for generics withstd::ops::Dropas bounds. - DYN_
DROP - The
dyn_droplint checks for trait objects withstd::ops::Drop.