rust/crates/ide-assists/src
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
..
handlers Auto merge of #15377 - Veykril:extern-crate-decl, r=Veykril 2023-08-02 10:27:30 +00:00
tests Added remove_unused_imports assist. 2023-07-09 17:44:27 -04:00
utils internal: Replace Display impl for Name 2023-05-24 20:55:12 +02:00
assist_config.rs feat: add config for inserting must_use in generate_enum_as_method 2022-10-24 13:18:24 +05:30
assist_context.rs
lib.rs Added remove_unused_imports assist. 2023-07-09 17:44:27 -04:00
tests.rs internal: Defer rendering of structured snippets 2023-07-12 01:50:35 -04:00
utils.rs HiddenDocAttr becomes DocHiddenAttr 2023-07-07 14:15:15 +02:00