about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-02 10:27:30 +0000
committerbors <bors@rust-lang.org>2023-08-02 10:27:30 +0000
commit12cb6e7327f19c90158f4f64cc7a9d21431977d4 (patch)
tree34ea98bdfcf335612941fe23e70feaa4ac7e50d6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent8e18b0f28c467cd5c7ae879dda71b30a57a47687 (diff)
parent6e2c3f610b6ed6e0c26aacf967117cbaf06c3754 (diff)
downloadrust-12cb6e7327f19c90158f4f64cc7a9d21431977d4.tar.gz
rust-12cb6e7327f19c90158f4f64cc7a9d21431977d4.zip
Auto merge of #15377 - Veykril:extern-crate-decl, r=Veykril
Add ExternCrateDecl to HIR

Adding these doesn't really require much design effort as they represent a single import, unlike use trees which are one item that represent 0 or more imports.

We only resolve to this definition when actually resolving on the name or alias of an `extern crate name as alias` item, not usages yet as that requires far more changes that won't lead anywhere without giving it more thought. Nevertheless the changes slightly improve IDE things, an example being hover on the decl showing the merged doc comments for example.

cc https://github.com/rust-lang/rust-analyzer/issues/14079
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions