1
Fork 0

avoid processing mentioned items that are also still used

This commit is contained in:
Ralf Jung 2024-03-17 09:37:52 +01:00
parent 91b35a1b40
commit ee4b758161
2 changed files with 28 additions and 4 deletions

View file

@ -314,7 +314,7 @@ impl<'tcx> CoroutineInfo<'tcx> {
}
/// Some item that needs to monomorphize successfully for a MIR body to be considered well-formed.
#[derive(Copy, Clone, PartialEq, Debug, HashStable, TyEncodable, TyDecodable)]
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, HashStable, TyEncodable, TyDecodable)]
#[derive(TypeFoldable, TypeVisitable)]
pub enum MentionedItem<'tcx> {
Fn(DefId, GenericArgsRef<'tcx>),