Re-exportsΒ§
use rustc_hir::Arm;πuse rustc_hir::Expr;πuse rustc_hir::ExprKind;πuse rustc_hir::Node;πuse rustc_hir::StmtKind;πuse rustc_lint_defs::declare_lint;πuse rustc_lint_defs::declare_lint_pass;πuse rustc_middle::ty;πuse rustc_span::sym;πuse crate::diagnostics::DropCopyDiag;πuse crate::diagnostics::DropInPlaceCopyDiag;πuse crate::diagnostics::DropInPlaceRefDiag;πuse crate::diagnostics::DropRefDiag;πuse crate::diagnostics::ForgetCopyDiag;πuse crate::diagnostics::ForgetRefDiag;πuse crate::diagnostics::UndroppedManuallyDropsDiag;πuse crate::diagnostics::UndroppedManuallyDropsInPlaceDiag;πuse crate::diagnostics::UndroppedManuallyDropsInPlaceSuggestion;πuse crate::diagnostics::UndroppedManuallyDropsSuggestion;πuse crate::diagnostics::UseLetUnderscoreIgnoreSuggestion;πuse crate::utils::std_or_core;πuse crate::LateContext;πuse crate::LateLintPass;πuse crate::LintContext;π
StructsΒ§
StaticsΒ§
- DROPPING_
COPY_ TYPES - The
dropping_copy_typeslint checks for calls tostd::mem::dropandstd::ptr::drop_in_placewhere the dropped value implements theCopytrait. - DROPPING_
REFERENCES - The
dropping_referenceslint checks for calls tostd::mem::dropandstd::ptr::drop_in_placewhere the dropped type is a reference instead of an owned value. - FORGETTING_
COPY_ TYPES - The
forgetting_copy_typeslint checks for calls tostd::mem::forgetwith a value that derives the Copy trait. - FORGETTING_
REFERENCES - The
forgetting_referenceslint checks for calls tostd::mem::forgetwith a reference instead of an owned value. - UNDROPPED_
MANUALLY_ DROPS - The
undropped_manually_dropslint check for calls tostd::mem::dropandstd::ptr::drop_in_placewhere the dropped value isstd::mem::ManuallyDropwhich doesnβt drop.