Skip to main content

Module traits

Module traits 

Source

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ยง

DropTraitConstraints
Lint for bounds of the form T: Drop, which usually indicate an attempt to emulate std::mem::needs_drop.

Staticsยง

DROP_BOUNDS
The drop_bounds lint checks for generics with std::ops::Drop as bounds.
DYN_DROP
The dyn_drop lint checks for trait objects with std::ops::Drop.