[ty] fix build failure caused by conflicts between #21683 and #21800 (#21802)

This commit is contained in:
Shunsuke Shibayama 2025-12-05 11:20:24 +09:00 committed by GitHub
parent 3511b7a06b
commit 10de342991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -10154,6 +10154,7 @@ impl<'db> TypeVarBoundOrConstraints<'db> {
.zip(prev_elements.iter())
.map(|(ty, prev_ty)| ty.cycle_normalized(db, *prev_ty, cycle))
.collect::<Box<_>>(),
constraints.recursively_defined(db),
))
}
// The choice of whether it's an upper bound or constraints is purely syntactic and
@ -10181,6 +10182,7 @@ impl<'db> TypeVarBoundOrConstraints<'db> {
.iter()
.map(|ty| ty.recursive_type_normalized(db, cycle))
.collect::<Box<_>>(),
constraints.recursively_defined(db),
))
}
}