Skip to content

Commit

Permalink
Replace run-rustfix for issue 67691 test with a FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
sapir committed Apr 10, 2020
1 parent a8e3d0b commit 3221638
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 93 deletions.
85 changes: 0 additions & 85 deletions src/test/ui/lint/issue-67691-unused-field-in-or-pattern.fixed

This file was deleted.

3 changes: 2 additions & 1 deletion src/test/ui/lint/issue-67691-unused-field-in-or-pattern.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// run-rustfix
// FIXME: should be run-rustfix, but rustfix doesn't currently support multipart suggestions, see
// #53934

#![feature(or_patterns)]
#![deny(unused)]
Expand Down
14 changes: 7 additions & 7 deletions src/test/ui/lint/issue-67691-unused-field-in-or-pattern.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: unused variable: `j`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:20:16
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:21:16
|
LL | A { i, j } | B { i, j } => {
| ^ ^
|
note: the lint level is defined here
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:4:9
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:5:9
|
LL | #![deny(unused)]
| ^^^^^^
Expand All @@ -16,7 +16,7 @@ LL | A { i, j: _ } | B { i, j: _ } => {
| ^^^^ ^^^^

error: unused variable: `j`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:30:16
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:31:16
|
LL | A { i, ref j } | B { i, ref j } => {
| ^^^^^ ^^^^^
Expand All @@ -27,7 +27,7 @@ LL | A { i, j: _ } | B { i, j: _ } => {
| ^^^^ ^^^^

error: unused variable: `j`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:40:21
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:41:21
|
LL | Some(A { i, j } | B { i, j }) => {
| ^ ^
Expand All @@ -38,7 +38,7 @@ LL | Some(A { i, j: _ } | B { i, j: _ }) => {
| ^^^^ ^^^^

error: unused variable: `j`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:52:21
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:53:21
|
LL | Some(A { i, ref j } | B { i, ref j }) => {
| ^^^^^ ^^^^^
Expand All @@ -49,7 +49,7 @@ LL | Some(A { i, j: _ } | B { i, j: _ }) => {
| ^^^^ ^^^^

error: unused variable: `i`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:62:24
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:63:24
|
LL | MixedEnum::A { i } | MixedEnum::B(i) => {
| ^ ^
Expand All @@ -60,7 +60,7 @@ LL | MixedEnum::A { i: _ } | MixedEnum::B(_) => {
| ^^^^ ^

error: unused variable: `i`
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:70:24
--> $DIR/issue-67691-unused-field-in-or-pattern.rs:71:24
|
LL | MixedEnum::A { ref i } | MixedEnum::B(ref i) => {
| ^^^^^ ^^^^^
Expand Down

0 comments on commit 3221638

Please sign in to comment.