rust/compiler/rustc_ty_utils/src
bors 85c0558d03 Auto merge of #90218 - JakobDegen:adt_significant_drop_fix, r=nikomatsakis
Fixes incorrect handling of ADT's drop requirements

Fixes #90024 and a bunch of duplicates.

The main issue was just that the contract of `NeedsDropTypes::adt_components` was inconsistent; the list of types it might return were the generic parameters themselves or the fields of the ADT, depending on the nature of the drop impl. This meant that the caller could not determine whether a `.subst()` call was still needed on those types; it called `.subst()` in all cases, and this led to ICEs when the returned types were the generic params.

First contribution of more than a few lines, so feedback definitely appreciated.
2021-10-28 16:03:13 +00:00
..
common_traits.rs Don't consider !Unpin references as noalias 2021-03-21 20:10:53 +01:00
instance.rs Const drop selection candidates 2021-09-09 05:21:31 +00:00
lib.rs Remove various unused feature gates 2021-10-02 19:09:18 +02:00
needs_drop.rs Clean up debug statements in needs_drop 2021-10-25 20:45:46 -04:00
representability.rs Implement changes suggested by tmiasko and davidtwco 2021-05-10 17:47:50 +02:00
ty.rs expose default substs in param_env 2021-10-25 16:04:57 +02:00