rustc_ty_utils

Module needs_drop

Source
Expand description

Check whether a type has (potentially) non-trivial drop glue.

Structs§

NeedsDropTypes 🔒

Enums§

DtorType 🔒

Functions§

adt_consider_insignificant_dtor 🔒
adt_drop_tys 🔒
adt_significant_drop_tys 🔒
drop_tys_helper 🔒
filter_array_elements 🔒
HACK: in order to not mistakenly assume that [PhantomData<T>; N] requires drop glue we check the element type for drop glue. The correct fix would be looking at the entirety of the code around needs_drop_components and this file and come up with logic that is easier to follow while not repeating any checks that may thus diverge.
has_significant_drop_raw 🔒
list_significant_drop_tys 🔒
needs_async_drop_raw 🔒
needs_drop_raw 🔒
provide 🔒

Type Aliases§

NeedsDropResult 🔒