pub static UNDROPPED_MANUALLY_DROPS: &LintExpand description
The undropped_manually_drops lint check for calls to std::mem::drop
and std::ptr::drop_in_place where the dropped value is std::mem::ManuallyDrop
which doesn’t drop.
§Example
ⓘ
struct S;
drop(std::mem::ManuallyDrop::new(S));{{produces}}
§Explanation
ManuallyDrop does not drop it’s inner value so calling std::mem::drop will
not drop the inner value of the ManuallyDrop either.