mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Rust: Resolve as paths to trait
This commit is contained in:
@@ -1556,7 +1556,8 @@ private class PathExtPath extends PathExt instanceof Path {
|
||||
tree.hasPath() and
|
||||
this = getAUseTreeUseTree(tree).getPath().getQualifier*()
|
||||
) and
|
||||
name = Path.super.getText()
|
||||
// For a `<Type as Trait>` path we resolve the trait name
|
||||
name = [Path.super.getText(), Path.super.getSegment().getTraitTypeRepr().getPath().getText()]
|
||||
}
|
||||
|
||||
override Path getQualifier() { result = Path.super.getQualifier() }
|
||||
|
||||
Reference in New Issue
Block a user