Skip to content

Commit 4654001

Browse files
committed
Rust: Adapt type inference consistency query exceptions
1 parent a19ad5e commit 4654001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/ql/lib/codeql/rust/internal/typeinference/TypeInferenceConsistency.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
1818
any(PathTypeMention ptm |
1919
exists(ptm.resolvePathTypeAt(TypePath::nil())) and
2020
not exists(ptm.resolveType())
21+
or
22+
ptm.(NonAliasPathTypeMention).getResolved() instanceof TypeAlias
2123
) and
2224
// Only include inconsistencies in the source, as we otherwise get
2325
// inconsistencies from library code in every project.

0 commit comments

Comments
 (0)