Skip to content

Commit 3afb5d7

Browse files
committed
Add warning when mixing -Zbuild-std with --build-plan.
1 parent 581da42 commit 3afb5d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cargo/ops/cargo_compile.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ pub fn compile_ws<'a>(
309309
let (mut packages, resolve_with_overrides) = resolve;
310310

311311
let std_resolve = if let Some(crates) = &config.cli_unstable().build_std {
312+
if build_config.build_plan {
313+
config
314+
.shell()
315+
.warn("-Zbuild-std does not currently fully support --build-plan")?;
316+
}
312317
if build_config.requested_target.is_none() {
313318
// TODO: This should eventually be fixed. Unfortunately it is not
314319
// easy to get the host triple in BuildConfig. Consider changing

0 commit comments

Comments
 (0)