mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
refactor(future): Group shell output
This commit is contained in:
parent
acf54a080e
commit
9e401f67f6
@ -501,22 +501,22 @@ https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch
|
|||||||
version of Rust: {}",
|
version of Rust: {}",
|
||||||
package_vers.join(", ")
|
package_vers.join(", ")
|
||||||
)));
|
)));
|
||||||
}
|
if bcx.build_config.future_incompat_report {
|
||||||
if bcx.build_config.future_incompat_report {
|
if !suggestion_message.is_empty() {
|
||||||
if !suggestion_message.is_empty() {
|
drop(bcx.gctx.shell().note(&suggestion_message));
|
||||||
drop(bcx.gctx.shell().note(&suggestion_message));
|
}
|
||||||
}
|
drop(bcx.gctx.shell().note(&format!(
|
||||||
drop(bcx.gctx.shell().note(&format!(
|
"this report can be shown with `cargo report \
|
||||||
"this report can be shown with `cargo report \
|
|
||||||
future-incompatibilities --id {}`",
|
future-incompatibilities --id {}`",
|
||||||
saved_report_id
|
saved_report_id
|
||||||
)));
|
)));
|
||||||
} else if should_display_message {
|
} else if should_display_message {
|
||||||
drop(bcx.gctx.shell().note(&format!(
|
drop(bcx.gctx.shell().note(&format!(
|
||||||
"to see what the problems were, use the option \
|
"to see what the problems were, use the option \
|
||||||
`--future-incompat-report`, or run `cargo report \
|
`--future-incompat-report`, or run `cargo report \
|
||||||
future-incompatibilities --id {}`",
|
future-incompatibilities --id {}`",
|
||||||
saved_report_id
|
saved_report_id
|
||||||
)));
|
)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user