mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: refine upgrade script
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user