@@ -21,10 +21,13 @@ fn alias_incorrect_config_type() {
21
21
22
22
p. cargo ( "b-cargo-test -v" )
23
23
. with_status ( 101 )
24
- . with_stderr_contains (
24
+ . with_stderr (
25
25
"\
26
- [ERROR] invalid configuration for key `alias.b-cargo-test`
27
- expected a list, but found a integer for [..]" ,
26
+ [ERROR] alias `b-cargo-test` has unresolvable definition: b-cargo-test
27
+
28
+ Caused by:
29
+ invalid configuration for key `alias.b-cargo-test`
30
+ expected a list, but found a integer for [..]" ,
28
31
)
29
32
. run ( ) ;
30
33
}
@@ -45,8 +48,19 @@ fn alias_malformed_config_string() {
45
48
46
49
p. cargo ( "b-cargo-test -v" )
47
50
. with_status ( 101 )
48
- . with_stderr_contains (
51
+ . with_stderr (
49
52
"\
53
+ error: alias `b-cargo-test` has unresolvable definition: b-cargo-test
54
+
55
+ Caused by:
56
+ [..]
57
+
58
+ Caused by:
59
+ [..]
60
+
61
+ Caused by:
62
+ [..]
63
+
50
64
Caused by:
51
65
TOML parse error at line [..]
52
66
|
@@ -75,8 +89,22 @@ fn alias_malformed_config_list() {
75
89
76
90
p. cargo ( "b-cargo-test -v" )
77
91
. with_status ( 101 )
78
- . with_stderr_contains (
92
+ . with_stderr (
79
93
"\
94
+ [ERROR] alias `b-cargo-test` has unresolvable definition: b-cargo-test
95
+
96
+ Caused by:
97
+ [..]
98
+
99
+ Caused by:
100
+ [..]
101
+
102
+ Caused by:
103
+ failed to parse key `alias`
104
+
105
+ Caused by:
106
+ failed to parse key `b-cargo-test`
107
+
80
108
Caused by:
81
109
expected string but found integer in list
82
110
" ,
@@ -191,7 +219,7 @@ fn default_args_alias() {
191
219
[WARNING] user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
192
220
This was previously accepted but is being phased out; it will become a hard error in a future release.
193
221
For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>.
194
- error: alias echo has unresolvable recursive definition: echo -> echo
222
+ [ERROR] alias ` echo` has recursive definition: echo -> echo
195
223
" ,
196
224
)
197
225
. run ( ) ;
@@ -203,7 +231,7 @@ error: alias echo has unresolvable recursive definition: echo -> echo
203
231
[WARNING] user-defined alias `echo` is shadowing an external subcommand found at: `[ROOT]/cargo-echo/target/debug/cargo-echo[EXE]`
204
232
This was previously accepted but is being phased out; it will become a hard error in a future release.
205
233
For more information, see issue #10049 <https://github.com/rust-lang/cargo/issues/10049>.
206
- error: alias test-1 has unresolvable recursive definition: test-1 -> echo -> echo
234
+ [ERROR] alias ` test-1` has recursive definition: test-1 -> echo -> echo
207
235
" ,
208
236
)
209
237
. run ( ) ;
@@ -239,14 +267,14 @@ fn corecursive_alias() {
239
267
p. cargo ( "test-1" )
240
268
. with_status ( 101 )
241
269
. with_stderr (
242
- "error: alias test-1 has unresolvable recursive definition: test-1 -> test-2 -> test-3 -> test-1" ,
270
+ "[ERROR] alias ` test-1` has recursive definition: test-1 -> test-2 -> test-3 -> test-1" ,
243
271
)
244
272
. run ( ) ;
245
273
246
274
p. cargo ( "test-2" )
247
275
. with_status ( 101 )
248
276
. with_stderr (
249
- "error: alias test-2 has unresolvable recursive definition: test-2 -> test-3 -> test-1 -> test-2" ,
277
+ "[ERROR] alias ` test-2` has recursive definition: test-2 -> test-3 -> test-1 -> test-2" ,
250
278
)
251
279
. run ( ) ;
252
280
}
0 commit comments