Skip to content

Commit 52e3690

Browse files
committed
refactor(future): Group shell output
1 parent 69ec5cc commit 52e3690

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/cargo/core/compiler/future_incompat.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -501,22 +501,22 @@ https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch
501501
version of Rust: {}",
502502
package_vers.join(", ")
503503
)));
504-
}
505-
if bcx.build_config.future_incompat_report {
506-
if !suggestion_message.is_empty() {
507-
drop(bcx.gctx.shell().note(&suggestion_message));
508-
}
509-
drop(bcx.gctx.shell().note(&format!(
510-
"this report can be shown with `cargo report \
504+
if bcx.build_config.future_incompat_report {
505+
if !suggestion_message.is_empty() {
506+
drop(bcx.gctx.shell().note(&suggestion_message));
507+
}
508+
drop(bcx.gctx.shell().note(&format!(
509+
"this report can be shown with `cargo report \
511510
future-incompatibilities --id {}`",
512-
saved_report_id
513-
)));
514-
} else if should_display_message {
515-
drop(bcx.gctx.shell().note(&format!(
516-
"to see what the problems were, use the option \
511+
saved_report_id
512+
)));
513+
} else if should_display_message {
514+
drop(bcx.gctx.shell().note(&format!(
515+
"to see what the problems were, use the option \
517516
`--future-incompat-report`, or run `cargo report \
518517
future-incompatibilities --id {}`",
519-
saved_report_id
520-
)));
518+
saved_report_id
519+
)));
520+
}
521521
}
522522
}

0 commit comments

Comments
 (0)