Skip to content

Commit a658fa1

Browse files
committed
Rust: refine upgrade script
1 parent 6266d6e commit a658fa1

File tree

1 file changed

+4
-0
lines changed
  • rust/ql/lib/upgrades/319c933d9615ccf40f363548cafd51d08c74a534

1 file changed

+4
-0
lines changed

rust/ql/lib/upgrades/319c933d9615ccf40f363548cafd51d08c74a534/upgrade.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ query predicate new_for_type_repr_for_binders(Element id, NewElement binder) {
6666
binder = Fresh::map(TForTypeForBinder(id, _))
6767
}
6868

69+
query predicate new_for_type_repr_type_reprs(Element id, Element type) {
70+
for_type_repr_type_reprs(id, type) and not id instanceof ForTypeInTypeBound
71+
}
72+
6973
// we attach a ForTypeInTypeBound id as a ForBinder one to its TypeBound
7074
query predicate new_type_bound_for_binders(Element id, NewElement binder) {
7175
id = binder.(ForTypeInTypeBound).getBound()

0 commit comments

Comments
 (0)