Skip to content

Commit f5fe531

Browse files
committed
Rust: remove Stage::ref() trick
1 parent 2804c13 commit f5fe531

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

rust/ql/lib/codeql/rust/dataflow/internal/FlowSummaryImpl.qll

+1-10
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module Input implements InputSig<Location, RustDataFlow> {
5454

5555
RustDataFlow::ArgumentPosition callbackSelfParameterPosition() { result.isClosureSelf() }
5656

57-
ReturnKind getStandardReturnValueKind() { result = TNormalReturnKind() and Stage::ref() }
57+
ReturnKind getStandardReturnValueKind() { result = TNormalReturnKind() }
5858

5959
string encodeParameterPosition(ParameterPosition pos) { result = pos.toString() }
6060

@@ -197,12 +197,3 @@ module ParsePositions {
197197
i = AccessPath::parseInt(c)
198198
}
199199
}
200-
201-
cached
202-
module Stage {
203-
cached
204-
predicate ref() { 1 = 1 }
205-
206-
cached
207-
predicate backref() { optionalStep(_, _, _) }
208-
}

0 commit comments

Comments
 (0)