Skip to content

Commit 0ce06e8

Browse files
committed
Rust: Use member predicate from path resolution
1 parent e778cbe commit 0ce06e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ private predicate methodCandidate(Type type, string name, int arity, Impl impl)
10841084
*/
10851085
pragma[nomagic]
10861086
private predicate methodCandidateTrait(Type type, Trait trait, string name, int arity, Impl impl) {
1087-
trait = resolvePath(impl.getTrait().(PathTypeRepr).getPath()) and
1087+
trait = resolvePath(impl.(ImplItemNode).getTraitPath()) and
10881088
methodCandidate(type, name, arity, impl)
10891089
}
10901090

0 commit comments

Comments
 (0)