Skip to content

Commit 0a7003e

Browse files
committed
Auto merge of #5065 - matthiaskrgr:rustup_28, r=matthiaskrgr
rustup rust-lang/rust#67712 slice_patterns have been stabilized. changelog: none
2 parents 0964b8d + b2c4f09 commit 0a7003e

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

clippy_lints/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![feature(box_syntax)]
44
#![feature(box_patterns)]
55
#![feature(rustc_private)]
6-
#![feature(slice_patterns)]
76
#![feature(stmt_expr_attributes)]
87
#![allow(clippy::missing_docs_in_private_items, clippy::must_use_candidate)]
98
#![recursion_limit = "512"]

tests/ui/patterns.fixed

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// run-rustfix
22
#![allow(unused)]
33
#![warn(clippy::all)]
4-
#![feature(slice_patterns)]
54

65
fn main() {
76
let v = Some(true);

tests/ui/patterns.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// run-rustfix
22
#![allow(unused)]
33
#![warn(clippy::all)]
4-
#![feature(slice_patterns)]
54

65
fn main() {
76
let v = Some(true);

tests/ui/patterns.stderr

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

0 commit comments

Comments
 (0)