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