Structs§
Enums§
- Move
Path 🔒Index AtBlock - Cache entry of
drop
at aBasicBlock
Functions§
- assign_
observables_ 🔒names - Assign names for anonymous or temporary values for diagnosis
- collect_
user_ 🔒names - Extract binding names if available for diagnosis
- extract_
component_ 🔒raw - Returns the list of types with a “potentially sigificant” that may be dropped
by dropping a value of type
ty
. - extract_
component_ 🔒with_ significant_ dtor - place_
descendent_ 🔒of_ bids - Check if a moved place at
idx
is a part of a BID. The use of this check is that we will consider drops on these as a drop of the overall BID and, thus, we can exclude it from the diagnosis. - place_
has_ 🔒common_ prefix - run_
lint 🔒 - The core of the lint
tail-expr-drop-order
- true_
significant_ 🔒drop_ ty - An additional filter to exclude well-known types from the ecosystem
because their drops are trivial.
This returns additional types to check if the drops are delegated to those.
A typical example is
hashbrown::HashMap<K, V>
, whose drop is delegated toK
andV
. - ty_
dtor_ 🔒span - Extract the span of the custom destructor of a type
especially the span of the
impl Drop
header or its entire block when we are working with current local crate.