mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
slice_patterns have been stabilized.
This commit is contained in:
parent
7ae24429ab
commit
b2c4f09d77
4 changed files with 1 additions and 4 deletions
|
@ -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"]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::all)]
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let v = Some(true);
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// run-rustfix
|
||||
#![allow(unused)]
|
||||
#![warn(clippy::all)]
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let v = Some(true);
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue