Rust: Use member predicate from path resolution

This commit is contained in:
Simon Friis Vindum
2025-05-26 15:12:33 +02:00
parent e778cbe768
commit 0ce06e8818

View File

@@ -1084,7 +1084,7 @@ private predicate methodCandidate(Type type, string name, int arity, Impl impl)
*/
pragma[nomagic]
private predicate methodCandidateTrait(Type type, Trait trait, string name, int arity, Impl impl) {
trait = resolvePath(impl.getTrait().(PathTypeRepr).getPath()) and
trait = resolvePath(impl.(ImplItemNode).getTraitPath()) and
methodCandidate(type, name, arity, impl)
}