diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index d4da7276b25..b4e1ddaf5d1 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -139,7 +139,12 @@ Run with 'cargo -Z [FLAG] [SUBCOMMAND]'", } } CommandInfo::Alias { target } => { - drop_println!(config, " {:<20} {}", name, target.iter().join(" ")); + drop_println!( + config, + " {:<20} alias: {}", + name, + target.iter().join(" ") + ); } } } diff --git a/tests/testsuite/cargo_command.rs b/tests/testsuite/cargo_command.rs index 86e53ce757c..b814713f1d2 100644 --- a/tests/testsuite/cargo_command.rs +++ b/tests/testsuite/cargo_command.rs @@ -57,8 +57,8 @@ fn list_custom_aliases_with_descriptions() { .build(); p.cargo("--list") - .with_stdout_contains(" myaliasstr foo --bar") - .with_stdout_contains(" myaliasvec foo --bar") + .with_stdout_contains(" myaliasstr alias: foo --bar") + .with_stdout_contains(" myaliasvec alias: foo --bar") .run(); }