mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Record import aliases in symbol index
This commit is contained in:
parent
637f496a81
commit
eb6244c5f9
10 changed files with 360 additions and 18 deletions
|
@ -419,9 +419,16 @@ const CONST_WITH_INNER: () = {
|
|||
|
||||
mod b_mod;
|
||||
|
||||
|
||||
use define_struct as really_define_struct;
|
||||
use Macro as ItemLikeMacro;
|
||||
use Macro as Trait; // overlay namespaces
|
||||
//- /b_mod.rs
|
||||
struct StructInModB;
|
||||
"#,
|
||||
use super::Macro as SuperItemLikeMacro;
|
||||
use crate::b_mod::StructInModB as ThisStruct;
|
||||
use crate::Trait as IsThisJustATrait;
|
||||
"#,
|
||||
);
|
||||
|
||||
let symbols: Vec<_> = Crate::from(db.test_crate())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue