Skip to content

Commit 3ffb193

Browse files
committed
Rust: Disable type inference for const and static
1 parent af60d77 commit 3ffb193

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,8 +2335,8 @@ private module Input3 implements InputSig3 {
23352335

23362336
private newtype TVariable =
23372337
TVariableVariable(Rust::Variable v) or
2338-
TConstVariable(Const c) or
2339-
TStaticVariable(Static s)
2338+
TConstVariable(Const c) { none() } or
2339+
TStaticVariable(Static s) { none() }
23402340

23412341
class Variable extends TVariable {
23422342
Rust::Variable asLocalVariable() { this = TVariableVariable(result) }

0 commit comments

Comments
 (0)