mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
slice_patterns have been stabilized.
This commit is contained in:
parent
7ae24429ab
commit
b2c4f09d77
@ -3,7 +3,6 @@
|
|||||||
#![feature(box_syntax)]
|
#![feature(box_syntax)]
|
||||||
#![feature(box_patterns)]
|
#![feature(box_patterns)]
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
#![feature(slice_patterns)]
|
|
||||||
#![feature(stmt_expr_attributes)]
|
#![feature(stmt_expr_attributes)]
|
||||||
#![allow(clippy::missing_docs_in_private_items, clippy::must_use_candidate)]
|
#![allow(clippy::missing_docs_in_private_items, clippy::must_use_candidate)]
|
||||||
#![recursion_limit = "512"]
|
#![recursion_limit = "512"]
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// run-rustfix
|
// run-rustfix
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
#![feature(slice_patterns)]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let v = Some(true);
|
let v = Some(true);
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
// run-rustfix
|
// run-rustfix
|
||||||
#![allow(unused)]
|
#![allow(unused)]
|
||||||
#![warn(clippy::all)]
|
#![warn(clippy::all)]
|
||||||
#![feature(slice_patterns)]
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let v = Some(true);
|
let v = Some(true);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
error: the `y @ _` pattern can be written as just `y`
|
error: the `y @ _` pattern can be written as just `y`
|
||||||
--> $DIR/patterns.rs:11:9
|
--> $DIR/patterns.rs:10:9
|
||||||
|
|
|
|
||||||
LL | y @ _ => (),
|
LL | y @ _ => (),
|
||||||
| ^^^^^ help: try: `y`
|
| ^^^^^ help: try: `y`
|
||||||
|
Loading…
Reference in New Issue
Block a user