mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Fix violated invariant
This commit is contained in:
parent
3a76557be2
commit
d998bea5de
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue