mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Rust: Adapt type inference consistency query exceptions
This commit is contained in:
@@ -18,6 +18,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
|
||||
any(PathTypeMention ptm |
|
||||
exists(ptm.resolvePathTypeAt(TypePath::nil())) and
|
||||
not exists(ptm.resolveType())
|
||||
or
|
||||
ptm.(NonAliasPathTypeMention).getResolved() instanceof TypeAlias
|
||||
) and
|
||||
// Only include inconsistencies in the source, as we otherwise get
|
||||
// inconsistencies from library code in every project.
|
||||
|
||||
Reference in New Issue
Block a user