|
1 |
| -error: duplicate matcher binding |
2 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:5:16 |
3 |
| - | |
4 |
| -LL | ($a:ident, $a:ident) => {}; //~ERROR duplicate matcher binding |
5 |
| - | ^^^^^^^^ |
6 |
| - | |
7 |
| -note: previous declaration was here |
8 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:5:6 |
9 |
| - | |
10 |
| -LL | ($a:ident, $a:ident) => {}; //~ERROR duplicate matcher binding |
11 |
| - | ^^^^^^^^ |
| 1 | +warning: duplicate matcher binding |
| 2 | + --> src/test/ui/macros/macro-multiple-matcher-bindings.rs:7:6 |
| 3 | + | |
| 4 | +7 | ($a:ident, $a:ident) => {}; //~WARN duplicate matcher binding |
| 5 | + | ^^^^^^^^ ^^^^^^^^ |
| 6 | + | |
| 7 | + = note: #[warn(duplicate_matcher_binding_name)] on by default |
| 8 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 9 | + = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> |
12 | 10 |
|
13 |
| -error: duplicate matcher binding |
14 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:6:16 |
15 |
| - | |
16 |
| -LL | ($a:ident, $a:path) => {}; //~ERROR duplicate matcher binding |
17 |
| - | ^^^^^^^ |
18 |
| - | |
19 |
| -note: previous declaration was here |
20 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:6:6 |
21 |
| - | |
22 |
| -LL | ($a:ident, $a:path) => {}; //~ERROR duplicate matcher binding |
23 |
| - | ^^^^^^^^ |
| 11 | +warning: duplicate matcher binding |
| 12 | + --> src/test/ui/macros/macro-multiple-matcher-bindings.rs:8:6 |
| 13 | + | |
| 14 | +8 | ($a:ident, $a:path) => {}; //~WARN duplicate matcher binding |
| 15 | + | ^^^^^^^^ ^^^^^^^ |
| 16 | + | |
| 17 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 18 | + = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> |
24 | 19 |
|
25 |
| -error: duplicate matcher binding |
26 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:15:18 |
27 |
| - | |
28 |
| -LL | ($a:ident, $($a:ident),*) => {}; //~ERROR duplicate matcher binding |
29 |
| - | ^^^^^^^^ |
| 20 | +warning: duplicate matcher binding |
| 21 | + --> src/test/ui/macros/macro-multiple-matcher-bindings.rs:17:6 |
30 | 22 | |
|
31 |
| -note: previous declaration was here |
32 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:15:6 |
| 23 | +LL | ($a:ident, $($a:ident),*) => {}; //~WARN duplicate matcher binding |
| 24 | + | ^^^^^^^^ ^^^^^^^^ |
33 | 25 | |
|
34 |
| -LL | ($a:ident, $($a:ident),*) => {}; //~ERROR duplicate matcher binding |
35 |
| - | ^^^^^^^^ |
| 26 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 27 | + = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> |
36 | 28 |
|
37 |
| -error: duplicate matcher binding |
38 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:16:25 |
| 29 | +warning: duplicate matcher binding |
| 30 | + --> src/test/ui/macros/macro-multiple-matcher-bindings.rs:18:8 |
39 | 31 | |
|
40 |
| -LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~ERROR duplicate matcher binding |
41 |
| - | ^^^^^^^ |
| 32 | +LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~WARN duplicate matcher binding |
| 33 | + | ^^^^^^^^ ^^^^^^^ |
42 | 34 | |
|
43 |
| -note: previous declaration was here |
44 |
| - --> $DIR/macro-multiple-matcher-bindings.rs:16:8 |
45 |
| - | |
46 |
| -LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~ERROR duplicate matcher binding |
47 |
| - | ^^^^^^^^ |
48 |
| - |
49 |
| -error: aborting due to 4 previous errors |
| 35 | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 36 | + = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> |
50 | 37 |
|
0 commit comments