Skip to content

Commit b2303a7

Browse files
committed
slice_patterns is stable now
1 parent 6a0f14b commit b2303a7

File tree

5 files changed

+1
-9
lines changed

5 files changed

+1
-9
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6d0bb91bcba33a70fae4b0c663fb4403ed78f071
1+
6250d56355d72264ece721e8d0dc95b16a6824b1

tests/run-pass/issue-15080.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(slice_patterns)]
2-
31
fn main() {
42
let mut x: &[_] = &[1, 2, 3, 4];
53

tests/run-pass/issue-17877.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(slice_patterns)]
2-
31
fn main() {
42
assert_eq!(match [0u8; 16*1024] {
53
_ => 42_usize,

tests/run-pass/subslice_array.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(slice_patterns)]
2-
31
fn bar(a: &'static str, b: &'static str) -> [&'static str; 4] {
42
[a, b, b, a]
53
}

tests/run-pass/vec-matching-fold.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(slice_patterns)]
2-
31
use std::fmt::Debug;
42

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

0 commit comments

Comments
 (0)