File tree Expand file tree Collapse file tree
rust/ql/lib/codeql/rust/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,9 +147,9 @@ module Stages {
147147 predicate backref ( ) {
148148 1 = 1
149149 or
150- exists ( Type t )
150+ ( exists ( Type t ) implies any ( ) )
151151 or
152- exists ( inferType ( _) )
152+ ( exists ( inferType ( _) ) implies any ( ) )
153153 }
154154 }
155155
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ private import TypeAbstraction as TA
1010private import Type as T
1111private import TypeMention
1212private import codeql.rust.internal.typeinference.DerefChain
13+ private import codeql.rust.internal.CachedStages
1314private import FunctionType
1415private import FunctionOverloading as FunctionOverloading
1516private import BlanketImplementation as BlanketImplementation
@@ -276,6 +277,8 @@ private module Input3 implements InputSig3 {
276277 private import rust as Rust
277278
278279 predicate cachedStageRevRef ( ) {
280+ Stages:: TypeInferenceStage:: ref ( )
281+ or
279282 ( implicitDerefChainBorrow ( _, _, _) implies any ( ) )
280283 or
281284 ( exists ( resolveCallTarget ( _, _) ) implies any ( ) )
You can’t perform that action at this time.
0 commit comments