mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: fix <X as Y> path extraction
This works around a quirk in rust-analyzer's AST generation machinery, where for an `<X as Y>` path there might be no way to directly get `Y` from the path segment.
This commit is contained in:
2
rust/schema/ast.py
generated
2
rust/schema/ast.py
generated
@@ -492,10 +492,8 @@ class PathSegment(AstNode, ):
|
||||
generic_arg_list: optional["GenericArgList"] | child
|
||||
name_ref: optional["NameRef"] | child
|
||||
parenthesized_arg_list: optional["ParenthesizedArgList"] | child
|
||||
path_type: optional["PathTypeRepr"] | child
|
||||
ret_type: optional["RetTypeRepr"] | child
|
||||
return_type_syntax: optional["ReturnTypeSyntax"] | child
|
||||
type_repr: optional["TypeRepr"] | child
|
||||
|
||||
class PathTypeRepr(TypeRepr, ):
|
||||
path: optional["Path"] | child
|
||||
|
||||
Reference in New Issue
Block a user