Skip to content

Commit a1eadca

Browse files
committed
slice_patterns: remove gates in tests
1 parent 3e3cac0 commit a1eadca

File tree

116 files changed

+349
-490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+349
-490
lines changed

src/test/mir-opt/uniform_array_move_out.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(box_syntax)]
2-
#![feature(slice_patterns)]
32

43
fn move_out_from_end() {
54
let a = [box 1, box 2];

src/test/ui/array-slice-vec/subslice-patterns-const-eval-match.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// run-pass
44

5-
#![feature(slice_patterns, const_fn, const_if_match)]
5+
#![feature(const_fn, const_if_match)]
66
#[derive(PartialEq, Debug, Clone)]
77
struct N(u8);
88

src/test/ui/array-slice-vec/subslice-patterns-const-eval.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// run-pass
44

5-
#![feature(slice_patterns)]
6-
75
#[derive(PartialEq, Debug, Clone)]
86
struct N(u8);
97

src/test/ui/array-slice-vec/subslice-patterns-pass.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// run-pass
66

7-
#![feature(slice_patterns)]
8-
97
#![allow(unreachable_patterns)]
108

119
use std::convert::identity;

src/test/ui/array-slice-vec/vec-matching-fixed.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(slice_patterns)]
4-
53
fn a() {
64
let x = [1, 2, 3];
75
match x {

src/test/ui/array-slice-vec/vec-matching-fold.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(slice_patterns)]
4-
53
use std::fmt::Debug;
64

75
fn foldl<T, U, F>(values: &[T],

src/test/ui/array-slice-vec/vec-matching-legal-tail-element-borrow.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// run-pass
2-
#![allow(unused_variables)]
32

4-
#![feature(slice_patterns)]
3+
#![allow(unused_variables)]
54

65
pub fn main() {
76
let x = &[1, 2, 3, 4, 5];

src/test/ui/array-slice-vec/vec-matching.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(slice_patterns)]
4-
53
fn a() {
64
let x = [1];
75
match x {

src/test/ui/array-slice-vec/vec-tail-matching.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// run-pass
22

3-
#![feature(slice_patterns)]
4-
53
struct Foo {
64
string: &'static str
75
}

src/test/ui/binding/empty-types-in-patterns.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// run-pass
2+
23
#![feature(never_type, never_type_fallback)]
34
#![feature(exhaustive_patterns)]
4-
#![feature(slice_patterns)]
5+
56
#![allow(unreachable_patterns)]
67
#![allow(unreachable_code)]
78
#![allow(unused_variables)]

0 commit comments

Comments
 (0)