Skip to content

Commit 03c9a78

Browse files
committed
Rust: Simplify accessDeclarationPositionMatch
1 parent 3463ebd commit 03c9a78

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,7 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
672672
}
673673

674674
predicate accessDeclarationPositionMatch(AccessPosition apos, DeclarationPosition dpos) {
675-
apos.isSelf() and
676-
dpos.isSelf()
677-
or
678-
apos.asPosition() = dpos.asPosition()
679-
or
680-
apos.isReturn() and
681-
dpos.isReturn()
675+
apos = dpos
682676
}
683677

684678
bindingset[apos, target, path, t]

0 commit comments

Comments
 (0)