mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Use member predicate from path resolution
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user