mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Add inconsistency check for type mentions without a root type
This commit is contained in:
@@ -1314,6 +1314,10 @@ module Make1<LocationSig Location, InputSig1<Location> Input1> {
|
||||
getTypeParameterId(tp1) = getTypeParameterId(tp2) and
|
||||
tp1 != tp2
|
||||
}
|
||||
|
||||
query predicate illFormedTypeMention(TypeMention tm) {
|
||||
not exists(tm.resolveTypeAt(TypePath::nil())) and exists(tm.getLocation())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user