Fix violated invariant

This commit is contained in:
David Peter 2025-05-14 13:52:02 +02:00
parent 3a76557be2
commit d998bea5de

View file

@ -536,7 +536,11 @@ impl<'db> Specialization<'db> {
.iter()
.zip(other.types(db))
.map(|(self_type, other_type)| {
union_or_intersection_elements_ordering(db, self_type, other_type)
union_or_intersection_elements_ordering(
db,
&self_type.normalized(db),
&other_type.normalized(db),
)
})
.fold(Ordering::Equal, Ordering::then)
})