forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#83386 - mark-i-m:stabilize-pat2015, r=nikomat…
…sakis Stabilize `:pat_param` and remove `:pat2021` Blocked on rust-lang#83384 cc `@rust-lang/lang` rust-lang#79278 If I understand `@nikomatsakis` in https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/or.20patterns/near/231133873, another FCP is not needed. r? `@nikomatsakis`
- Loading branch information
Showing
15 changed files
with
66 additions
and
121 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
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 was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro | ||
--> $DIR/macro-or-patterns-back-compat.rs:6:21 | ||
--> $DIR/macro-or-patterns-back-compat.rs:5:21 | ||
| | ||
LL | macro_rules! foo { ($x:pat | $y:pat) => {} } | ||
| ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015` | ||
| ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param` | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/macro-or-patterns-back-compat.rs:4:9 | ||
--> $DIR/macro-or-patterns-back-compat.rs:3:9 | ||
| | ||
LL | #![deny(or_patterns_back_compat)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro | ||
--> $DIR/macro-or-patterns-back-compat.rs:7:23 | ||
--> $DIR/macro-or-patterns-back-compat.rs:6:23 | ||
| | ||
LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} } | ||
| ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015` | ||
| ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param` | ||
|
||
error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro | ||
--> $DIR/macro-or-patterns-back-compat.rs:10:21 | ||
--> $DIR/macro-or-patterns-back-compat.rs:9:21 | ||
| | ||
LL | macro_rules! ogg { ($x:pat | $y:pat2015) => {} } | ||
| ^^^^^^ help: use pat2015 to preserve semantics: `$x:pat2015` | ||
LL | macro_rules! ogg { ($x:pat | $y:pat_param) => {} } | ||
| ^^^^^^ help: use pat_param to preserve semantics: `$x:pat_param` | ||
|
||
error: the meaning of the `pat` fragment specifier is changing in Rust 2021, which may affect this macro | ||
--> $DIR/macro-or-patterns-back-compat.rs:12:26 | ||
--> $DIR/macro-or-patterns-back-compat.rs:11:26 | ||
| | ||
LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => { | ||
| ^^^^^^^^ help: use pat2015 to preserve semantics: `$pat:pat2015` | ||
| ^^^^^^^^ help: use pat_param to preserve semantics: `$pat:pat_param` | ||
|
||
error: aborting due to 4 previous errors | ||
|
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
24 changes: 12 additions & 12 deletions
24
src/test/ui/macros/macro-pat2021-pattern-followed-by-or.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