Skip to content

Commit a182dcf

Browse files
committed
Rust: Take ! types into account in consistency check
1 parent 212ceed commit a182dcf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

1212
query predicate illFormedTypeMention(TypeMention tm) {
1313
Consistency::illFormedTypeMention(tm) and
14+
not tm instanceof NeverTypeReprMention and
1415
// avoid overlap with `PathTypeMention`
1516
not tm instanceof PathTypeReprMention and
1617
// known limitation for type mentions that would mention an escaping type parameter

0 commit comments

Comments
 (0)