mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
fix(toml): Produce warnings for virtual manifests
This is prep for shifting unused keys warnings out of `convert_toml`
This commit is contained in:
parent
fcc6981d00
commit
714359289d
@ -1345,17 +1345,19 @@ fn to_virtual_manifest(
|
||||
bail!("virtual manifests must be configured with [workspace]");
|
||||
}
|
||||
};
|
||||
Ok((
|
||||
VirtualManifest::new(
|
||||
replace,
|
||||
patch,
|
||||
workspace_config,
|
||||
profiles,
|
||||
features,
|
||||
resolve_behavior,
|
||||
),
|
||||
nested_paths,
|
||||
))
|
||||
let mut manifest = VirtualManifest::new(
|
||||
replace,
|
||||
patch,
|
||||
workspace_config,
|
||||
profiles,
|
||||
features,
|
||||
resolve_behavior,
|
||||
);
|
||||
for warning in warnings {
|
||||
manifest.warnings_mut().add_warning(warning);
|
||||
}
|
||||
|
||||
Ok((manifest, nested_paths))
|
||||
}
|
||||
|
||||
fn replace(
|
||||
|
Loading…
x
Reference in New Issue
Block a user