diff options
| author | mark <markm@cs.wisc.edu> | 2021-03-22 13:53:16 -0500 |
|---|---|---|
| committer | mark <markm@cs.wisc.edu> | 2021-04-15 13:52:09 -0500 |
| commit | ebc4acee91dc9871d1c90f0d7a38aff0580dd18a (patch) | |
| tree | 4dbf786f7459fca087a6834714b0fe2c406c36d2 /src | |
| parent | 2962e7c0089d5c136f4e9600b7abccfbbde4973d (diff) | |
| download | rust-ebc4acee91dc9871d1c90f0d7a38aff0580dd18a.tar.gz rust-ebc4acee91dc9871d1c90f0d7a38aff0580dd18a.zip | |
stabilize :pat2015, leave :pat2021 gated
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr | 13 |
2 files changed, 4 insertions, 13 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs b/src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs index 430a9437cee..e9f813f83ae 100644 --- a/src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs +++ b/src/test/ui/feature-gates/feature-gate-edition_macro_pats.rs @@ -1,8 +1,8 @@ // Feature gate test for `edition_macro_pats` feature. macro_rules! foo { - ($x:pat2015) => {}; //~ERROR `pat2015` and `pat2021` are unstable - ($x:pat2021) => {}; //~ERROR `pat2015` and `pat2021` are unstable + ($x:pat2015) => {}; // ok + ($x:pat2021) => {}; //~ERROR `pat2021` is unstable } fn main() {} diff --git a/src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr b/src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr index d25bcaf929b..dc1f52d87a8 100644 --- a/src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr +++ b/src/test/ui/feature-gates/feature-gate-edition_macro_pats.stderr @@ -1,13 +1,4 @@ -error[E0658]: `pat2015` and `pat2021` are unstable. - --> $DIR/feature-gate-edition_macro_pats.rs:4:9 - | -LL | ($x:pat2015) => {}; - | ^^^^^^^ - | - = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information - = help: add `#![feature(edition_macro_pats)]` to the crate attributes to enable - -error[E0658]: `pat2015` and `pat2021` are unstable. +error[E0658]: `pat2021` is unstable. --> $DIR/feature-gate-edition_macro_pats.rs:5:9 | LL | ($x:pat2021) => {}; @@ -16,6 +7,6 @@ LL | ($x:pat2021) => {}; = note: see issue #54883 <https://github.com/rust-lang/rust/issues/54883> for more information = help: add `#![feature(edition_macro_pats)]` to the crate attributes to enable -error: aborting due to 2 previous errors +error: aborting due to previous error For more information about this error, try `rustc --explain E0658`. |
