Module rustc_ty_utils::needs_drop
source ยท Expand description
Check whether a type has (potentially) non-trivial drop glue.
Structsยง
- Needs
Drop ๐Types
Enumsยง
- Dtor
Type ๐
Functionsยง
- adt_
drop_ ๐tys - drop_
tys_ ๐helper - 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 aroundneeds_drop_components
and this file and come up with logic that is easier to follow while not repeating any checks that may thus diverge. - needs_
async_ ๐drop_ raw - needs_
drop_ ๐raw - provide ๐
Type Aliasesยง
- Needs
Drop ๐Result