slice_patterns have been stabilized.
This commit is contained in:
Matthias Krüger 2020-01-18 23:40:35 +01:00
parent 7ae24429ab
commit b2c4f09d77
4 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,6 @@
#![feature(box_syntax)]
#![feature(box_patterns)]
#![feature(rustc_private)]
#![feature(slice_patterns)]
#![feature(stmt_expr_attributes)]
#![allow(clippy::missing_docs_in_private_items, clippy::must_use_candidate)]
#![recursion_limit = "512"]

View File

@ -1,7 +1,6 @@
// run-rustfix
#![allow(unused)]
#![warn(clippy::all)]
#![feature(slice_patterns)]
fn main() {
let v = Some(true);

View File

@ -1,7 +1,6 @@
// run-rustfix
#![allow(unused)]
#![warn(clippy::all)]
#![feature(slice_patterns)]
fn main() {
let v = Some(true);

View File

@ -1,5 +1,5 @@
error: the `y @ _` pattern can be written as just `y`
--> $DIR/patterns.rs:11:9
--> $DIR/patterns.rs:10:9
|
LL | y @ _ => (),
| ^^^^^ help: try: `y`