Skip to content

Commit 04d8b3f

Browse files
committed
Rust: Tweak illFormedTypeMention consistency check
1 parent f7195f0 commit 04d8b3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import TypeInference::Consistency
99

1010
query predicate illFormedTypeMention(TypeMention tm) {
1111
Consistency::illFormedTypeMention(tm) and
12+
not tm instanceof PathTypeReprMention and // avoid overlap with `PathTypeMention`
1213
// Only include inconsistencies in the source, as we otherwise get
1314
// inconsistencies from library code in every project.
1415
tm.fromSource()

0 commit comments

Comments
 (0)