Skip to content

Commit a9394b2

Browse files
committed
wip4
1 parent 24a7cf7 commit a9394b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,7 @@ private module MethodCallResolution {
11621162
mc.isMethodCall(name, arity) and
11631163
methodCandidate(type, name, arity, i, self, selfPath, selfType)
11641164
|
1165-
// not CertainTypeInference::inferCertainType(mc.getReceiver(), TypePath::nil()) != type
1166-
not exists(i.(ImplItemNode).resolveTraitTy())
1165+
not i.(Impl).hasTrait()
11671166
or
11681167
methodCallVisibleImplTraitCandidate(mc, i)
11691168
or

0 commit comments

Comments
 (0)