Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
slice_patterns have been stabilized.
  • Loading branch information
matthiaskrgr committed Jan 18, 2020
1 parent 7ae2442 commit b2c4f09
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion clippy_lints/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
1 change: 0 additions & 1 deletion tests/ui/patterns.fixed
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// run-rustfix
#![allow(unused)]
#![warn(clippy::all)]
#![feature(slice_patterns)]

fn main() {
let v = Some(true);
Expand Down
1 change: 0 additions & 1 deletion tests/ui/patterns.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// run-rustfix
#![allow(unused)]
#![warn(clippy::all)]
#![feature(slice_patterns)]

fn main() {
let v = Some(true);
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/patterns.stderr
Original file line number Diff line number Diff line change
@@ -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`
Expand Down

0 comments on commit b2c4f09

Please sign in to comment.