Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it an incompatibility lint for now
- Loading branch information
Showing
7 changed files
with
72 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 29 additions & 42 deletions
71
src/test/ui/macros/macro-multiple-matcher-bindings.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,37 @@ | ||
error: duplicate matcher binding | ||
--> $DIR/macro-multiple-matcher-bindings.rs:5:16 | ||
| | ||
LL | ($a:ident, $a:ident) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
| | ||
note: previous declaration was here | ||
--> $DIR/macro-multiple-matcher-bindings.rs:5:6 | ||
| | ||
LL | ($a:ident, $a:ident) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
warning: duplicate matcher binding | ||
--> src/test/ui/macros/macro-multiple-matcher-bindings.rs:7:6 | ||
| | ||
7 | ($a:ident, $a:ident) => {}; //~WARN duplicate matcher binding | ||
| ^^^^^^^^ ^^^^^^^^ | ||
| | ||
= note: #[warn(duplicate_matcher_binding_name)] on by default | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> | ||
|
||
error: duplicate matcher binding | ||
--> $DIR/macro-multiple-matcher-bindings.rs:6:16 | ||
| | ||
LL | ($a:ident, $a:path) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^ | ||
| | ||
note: previous declaration was here | ||
--> $DIR/macro-multiple-matcher-bindings.rs:6:6 | ||
| | ||
LL | ($a:ident, $a:path) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
warning: duplicate matcher binding | ||
--> src/test/ui/macros/macro-multiple-matcher-bindings.rs:8:6 | ||
| | ||
8 | ($a:ident, $a:path) => {}; //~WARN duplicate matcher binding | ||
| ^^^^^^^^ ^^^^^^^ | ||
| | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> | ||
|
||
error: duplicate matcher binding | ||
--> $DIR/macro-multiple-matcher-bindings.rs:15:18 | ||
| | ||
LL | ($a:ident, $($a:ident),*) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
warning: duplicate matcher binding | ||
--> src/test/ui/macros/macro-multiple-matcher-bindings.rs:17:6 | ||
| | ||
note: previous declaration was here | ||
--> $DIR/macro-multiple-matcher-bindings.rs:15:6 | ||
LL | ($a:ident, $($a:ident),*) => {}; //~WARN duplicate matcher binding | ||
| ^^^^^^^^ ^^^^^^^^ | ||
| | ||
LL | ($a:ident, $($a:ident),*) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> | ||
|
||
error: duplicate matcher binding | ||
--> $DIR/macro-multiple-matcher-bindings.rs:16:25 | ||
warning: duplicate matcher binding | ||
--> src/test/ui/macros/macro-multiple-matcher-bindings.rs:18:8 | ||
| | ||
LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^ | ||
LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~WARN duplicate matcher binding | ||
| ^^^^^^^^ ^^^^^^^ | ||
| | ||
note: previous declaration was here | ||
--> $DIR/macro-multiple-matcher-bindings.rs:16:8 | ||
| | ||
LL | ($($a:ident)+ # $($($a:path),+);*) => {}; //~ERROR duplicate matcher binding | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to 4 previous errors | ||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | ||
= note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593> | ||
|