The dropping_references lint checks for calls to std::mem::drop
and std::ptr::drop_in_place where the dropped type is a reference instead of
an owned value.
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.