mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
fix: index the correct CargoWorkspace with rustc_private
This commit is contained in:
parent
f83dce0a4a
commit
ecb1368027
1 changed files with 3 additions and 1 deletions
|
@ -759,7 +759,9 @@ fn handle_rustc_crates(
|
|||
|
||||
let overrides = match override_cfg {
|
||||
CfgOverrides::Wildcard(cfg_diff) => Some(cfg_diff),
|
||||
CfgOverrides::Selective(cfg_overrides) => cfg_overrides.get(&cargo[pkg].name),
|
||||
CfgOverrides::Selective(cfg_overrides) => {
|
||||
cfg_overrides.get(&rustc_workspace[pkg].name)
|
||||
}
|
||||
};
|
||||
|
||||
if let Some(overrides) = overrides {
|
||||
|
|
Loading…
Reference in a new issue