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:
@@ -1439,7 +1439,8 @@ class _:
|
||||
"""
|
||||
A path segment, which is one part of a whole path.
|
||||
"""
|
||||
|
||||
type_repr: optional["TypeRepr"] | child | rust.detach
|
||||
trait_type_repr: optional["PathTypeRepr"] | child | rust.detach
|
||||
|
||||
@annotate(PathTypeRepr)
|
||||
@qltest.test_with(Path)
|
||||
|
||||
Reference in New Issue
Block a user