fix: index the correct CargoWorkspace with rustc_private

This commit is contained in:
Ted Kaminski 2022-04-20 17:16:04 +00:00
parent f83dce0a4a
commit ecb1368027

View file

@ -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 {