about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-30 01:23:42 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-01-18 19:33:47 +0100
commita1eadca88f03de91f5eecd316419d32e2a302c2b (patch)
treea0a48f8d12920bf9816cbd587c288af2d9c44e17 /src/test/ui/parser
parent3e3cac010b318c6a2aa89ffbbafaea169898ba3d (diff)
downloadrust-a1eadca88f03de91f5eecd316419d32e2a302c2b.tar.gz
rust-a1eadca88f03de91f5eecd316419d32e2a302c2b.zip
slice_patterns: remove gates in tests
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/match-vec-invalid.rs2
-rw-r--r--src/test/ui/parser/match-vec-invalid.stderr24
-rw-r--r--src/test/ui/parser/pat-lt-bracket-6.rs1
-rw-r--r--src/test/ui/parser/pat-lt-bracket-6.stderr16
4 files changed, 6 insertions, 37 deletions
diff --git a/src/test/ui/parser/match-vec-invalid.rs b/src/test/ui/parser/match-vec-invalid.rs
index 00f4374b256..97e33624bf6 100644
--- a/src/test/ui/parser/match-vec-invalid.rs
+++ b/src/test/ui/parser/match-vec-invalid.rs
@@ -3,8 +3,6 @@ fn main() {
     match a {
         [1, tail @ .., tail @ ..] => {},
         //~^ ERROR identifier `tail` is bound more than once in the same pattern
-        //~| ERROR subslice patterns are unstable
-        //~| ERROR subslice patterns are unstable
         //~| ERROR `..` can only be used once per slice pattern
         _ => ()
     }
diff --git a/src/test/ui/parser/match-vec-invalid.stderr b/src/test/ui/parser/match-vec-invalid.stderr
index 58343e86d7b..1dc11c31905 100644
--- a/src/test/ui/parser/match-vec-invalid.stderr
+++ b/src/test/ui/parser/match-vec-invalid.stderr
@@ -4,24 +4,6 @@ error[E0416]: identifier `tail` is bound more than once in the same pattern
 LL |         [1, tail @ .., tail @ ..] => {},
    |                        ^^^^ used in a pattern more than once
 
-error[E0658]: subslice patterns are unstable
-  --> $DIR/match-vec-invalid.rs:4:13
-   |
-LL |         [1, tail @ .., tail @ ..] => {},
-   |             ^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/62254
-   = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
-
-error[E0658]: subslice patterns are unstable
-  --> $DIR/match-vec-invalid.rs:4:24
-   |
-LL |         [1, tail @ .., tail @ ..] => {},
-   |                        ^^^^^^^^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/62254
-   = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
-
 error: `..` can only be used once per slice pattern
   --> $DIR/match-vec-invalid.rs:4:31
    |
@@ -31,12 +13,12 @@ LL |         [1, tail @ .., tail @ ..] => {},
    |                    previously used here
 
 error[E0308]: mismatched types
-  --> $DIR/match-vec-invalid.rs:13:30
+  --> $DIR/match-vec-invalid.rs:11:30
    |
 LL | const RECOVERY_WITNESS: () = 0;
    |                              ^ expected `()`, found integer
 
-error: aborting due to 5 previous errors
+error: aborting due to 3 previous errors
 
-Some errors have detailed explanations: E0308, E0416, E0658.
+Some errors have detailed explanations: E0308, E0416.
 For more information about an error, try `rustc --explain E0308`.
diff --git a/src/test/ui/parser/pat-lt-bracket-6.rs b/src/test/ui/parser/pat-lt-bracket-6.rs
index f27caa5d78c..7becffa9fe2 100644
--- a/src/test/ui/parser/pat-lt-bracket-6.rs
+++ b/src/test/ui/parser/pat-lt-bracket-6.rs
@@ -4,7 +4,6 @@ fn main() {
 
     let Test(&desc[..]) = x;
     //~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
-    //~^^ ERROR subslice patterns are unstable
 }
 
 const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types
diff --git a/src/test/ui/parser/pat-lt-bracket-6.stderr b/src/test/ui/parser/pat-lt-bracket-6.stderr
index fe9603cb57f..035d0dbfe06 100644
--- a/src/test/ui/parser/pat-lt-bracket-6.stderr
+++ b/src/test/ui/parser/pat-lt-bracket-6.stderr
@@ -7,22 +7,12 @@ LL |     let Test(&desc[..]) = x;
    |                   expected one of `)`, `,`, `@`, or `|`
    |                   help: missing `,`
 
-error[E0658]: subslice patterns are unstable
-  --> $DIR/pat-lt-bracket-6.rs:5:20
-   |
-LL |     let Test(&desc[..]) = x;
-   |                    ^^
-   |
-   = note: for more information, see https://github.com/rust-lang/rust/issues/62254
-   = help: add `#![feature(slice_patterns)]` to the crate attributes to enable
-
 error[E0308]: mismatched types
-  --> $DIR/pat-lt-bracket-6.rs:10:30
+  --> $DIR/pat-lt-bracket-6.rs:9:30
    |
 LL | const RECOVERY_WITNESS: () = 0;
    |                              ^ expected `()`, found integer
 
-error: aborting due to 3 previous errors
+error: aborting due to 2 previous errors
 
-Some errors have detailed explanations: E0308, E0658.
-For more information about an error, try `rustc --explain E0308`.
+For more information about this error, try `rustc --explain E0308`.