rust-analyzer/crates/ide-assists
bors 12cb6e7327 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
2023-08-02 10:27:30 +00:00
..
src Auto merge of #15377 - Veykril:extern-crate-decl, r=Veykril 2023-08-02 10:27:30 +00:00
Cargo.toml internal: Enable smallvec's union feature 2023-02-14 17:01:01 +01:00