File tree 2 files changed +10
-3
lines changed 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,10 @@ fn expand_aliases(
267
267
// a hard error.
268
268
if let Some ( path) = super :: find_external_subcommand ( config, cmd) {
269
269
config. shell ( ) . warn ( format ! (
270
- "user-defined alias `{}` is shadowing an external subcommand found at: `{}`" ,
270
+ "\
271
+ user-defined alias `{}` is shadowing an external subcommand found at: `{}`
272
+ This was previously accepted but is being phased out; it will become a hard error in a future release.
273
+ For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>." ,
271
274
cmd,
272
275
path. display( ) ,
273
276
) ) ?;
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ fn default_args_alias() {
101
101
. env ( "PATH" , & path)
102
102
. with_status ( 101 )
103
103
. with_stderr ( "\
104
- warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
104
+ [WARNING] user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
105
+ This was previously accepted but is being phased out; it will become a hard error in a future release.
106
+ For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>.
105
107
error: alias echo has unresolvable recursive definition: echo -> echo
106
108
" ,
107
109
)
@@ -111,7 +113,9 @@ error: alias echo has unresolvable recursive definition: echo -> echo
111
113
. env ( "PATH" , & path)
112
114
. with_status ( 101 )
113
115
. with_stderr ( "\
114
- warning: user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
116
+ [WARNING] user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
117
+ This was previously accepted but is being phased out; it will become a hard error in a future release.
118
+ For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>.
115
119
error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo
116
120
" ,
117
121
)
You can’t perform that action at this time.
0 commit comments