Rust: add block ids to canonical paths, making them "extended"

This commit is contained in:
Paolo Tranquilli
2024-10-28 12:41:05 +01:00
parent 652e47177f
commit 9c95a17882
67 changed files with 262 additions and 169 deletions

View File

@@ -1803,5 +1803,9 @@ class FormatArgument(Locatable):
@annotate(Item)
class _:
canonical_path: optional[string] | desc("See https://doc.rust-lang.org/reference/paths.html#canonical-paths.") | rust.detach
extended_canonical_path: optional[string] | desc("""
Either a canonical path (see https://doc.rust-lang.org/reference/paths.html#canonical-paths),
or `{<block id>}::name` for addressable items defined in an anonymous block (and only
addressable there-in).
""") | rust.detach | ql.internal
crate_origin: optional[string] | desc("One of `rustc:<name>`, `repo:<repository>:<name>` or `lang:<name>`.") | rust.detach | ql.internal