Rust: refine upgrade script

This commit is contained in:
Paolo Tranquilli
2025-08-18 17:19:47 +02:00
parent 6266d6e7b0
commit a658fa168d

View File

@@ -66,6 +66,10 @@ query predicate new_for_type_repr_for_binders(Element id, NewElement binder) {
binder = Fresh::map(TForTypeForBinder(id, _))
}
query predicate new_for_type_repr_type_reprs(Element id, Element type) {
for_type_repr_type_reprs(id, type) and not id instanceof ForTypeInTypeBound
}
// we attach a ForTypeInTypeBound id as a ForBinder one to its TypeBound
query predicate new_type_bound_for_binders(Element id, NewElement binder) {
id = binder.(ForTypeInTypeBound).getBound()