mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
fix: Properly handle proc-macro crate types for nameres
This commit is contained in:
parent
2537ad0d9e
commit
3edc5dcea8
8 changed files with 133 additions and 97 deletions
|
@ -160,6 +160,7 @@ impl ChangeFixture {
|
|||
meta.cfg,
|
||||
meta.env,
|
||||
Default::default(),
|
||||
false,
|
||||
origin,
|
||||
);
|
||||
let prev = crates.insert(crate_name.clone(), crate_id);
|
||||
|
@ -194,6 +195,7 @@ impl ChangeFixture {
|
|||
default_cfg,
|
||||
Env::default(),
|
||||
Default::default(),
|
||||
false,
|
||||
Default::default(),
|
||||
);
|
||||
} else {
|
||||
|
@ -230,6 +232,7 @@ impl ChangeFixture {
|
|||
CfgOptions::default(),
|
||||
Env::default(),
|
||||
Vec::new(),
|
||||
false,
|
||||
CrateOrigin::Lang,
|
||||
);
|
||||
|
||||
|
@ -266,6 +269,7 @@ impl ChangeFixture {
|
|||
CfgOptions::default(),
|
||||
Env::default(),
|
||||
proc_macro,
|
||||
true,
|
||||
CrateOrigin::Lang,
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue