We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a19ad5e commit 4654001Copy full SHA for 4654001
rust/ql/lib/codeql/rust/internal/typeinference/TypeInferenceConsistency.qll
@@ -18,6 +18,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
18
any(PathTypeMention ptm |
19
exists(ptm.resolvePathTypeAt(TypePath::nil())) and
20
not exists(ptm.resolveType())
21
+ or
22
+ ptm.(NonAliasPathTypeMention).getResolved() instanceof TypeAlias
23
) and
24
// Only include inconsistencies in the source, as we otherwise get
25
// inconsistencies from library code in every project.
0 commit comments