Skip to content

Commit 085f04a

Browse files
committed
Adjust suggestions
1 parent f57be6f commit 085f04a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/cargo/core/compiler/future_incompat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ You may want to consider updating them to a newer version to see if the issue ha
400400
"
401401
- {name}
402402
- Repository: {url}
403-
- Detailed warning command: `cargo report future-incompatibilities --id {id} --crate \"{name}\"",
403+
- Detailed warning command: `cargo report future-incompatibilities --id {id} --package {name}`",
404404
name = format!("{}:{}", package_id.name(), package_id.version()),
405405
url = manifest
406406
.metadata()

src/cargo/core/compiler/job_queue.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ impl<'cfg> DrainState<'cfg> {
871871
if !cx.bcx.build_config.build_plan {
872872
// It doesn't really matter if this fails.
873873
drop(cx.bcx.config.shell().status("Finished", message));
874-
self.emit_future_incompat(cx.bcx);
874+
future_incompat::render_message(cx.bcx, &self.per_package_future_incompat_reports);
875875
}
876876

877877
None
@@ -881,10 +881,6 @@ impl<'cfg> DrainState<'cfg> {
881881
}
882882
}
883883

884-
fn emit_future_incompat(&mut self, bcx: &BuildContext<'_, '_>) {
885-
future_incompat::render_message(bcx, &self.per_package_future_incompat_reports);
886-
}
887-
888884
fn handle_error(
889885
&self,
890886
shell: &mut Shell,

0 commit comments

Comments
 (0)