diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-10-31 18:32:40 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-10-31 19:08:11 +0200 |
| commit | 680089c2d906ac33e4ae16a184fce12b610af434 (patch) | |
| tree | 5a23ea8f8263f5c9913daca88dcf4057155fe54f /src/test/ui/feature-gates | |
| parent | 4c48355c69148c49d1becc26dcc6439650a35589 (diff) | |
| download | rust-680089c2d906ac33e4ae16a184fce12b610af434.tar.gz rust-680089c2d906ac33e4ae16a184fce12b610af434.zip | |
Revert "pre-expansion gate box_patterns"
This reverts commit 2aff6b36d7ed5c25700669a92b4a43200ee0fe6b.
Diffstat (limited to 'src/test/ui/feature-gates')
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-box_patterns.rs | 3 | ||||
| -rw-r--r-- | src/test/ui/feature-gates/feature-gate-box_patterns.stderr | 11 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-box_patterns.rs b/src/test/ui/feature-gates/feature-gate-box_patterns.rs index c5b926d5af2..8bec16a974e 100644 --- a/src/test/ui/feature-gates/feature-gate-box_patterns.rs +++ b/src/test/ui/feature-gates/feature-gate-box_patterns.rs @@ -2,6 +2,3 @@ fn main() { let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental println!("x: {}", x); } - -macro_rules! accept_pat { ($p:pat) => {} } -accept_pat!(box 0); //~ ERROR box pattern syntax is experimental diff --git a/src/test/ui/feature-gates/feature-gate-box_patterns.stderr b/src/test/ui/feature-gates/feature-gate-box_patterns.stderr index 1e47bd41e88..d2dafe93a86 100644 --- a/src/test/ui/feature-gates/feature-gate-box_patterns.stderr +++ b/src/test/ui/feature-gates/feature-gate-box_patterns.stderr @@ -7,15 +7,6 @@ LL | let box x = Box::new('c'); = note: for more information, see https://github.com/rust-lang/rust/issues/29641 = help: add `#![feature(box_patterns)]` to the crate attributes to enable -error[E0658]: box pattern syntax is experimental - --> $DIR/feature-gate-box_patterns.rs:7:13 - | -LL | accept_pat!(box 0); - | ^^^^^ - | - = note: for more information, see https://github.com/rust-lang/rust/issues/29641 - = help: add `#![feature(box_patterns)]` 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`. |
