|
1 | 1 | warning: unused variable: `i_think_continually`
|
2 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:22:9 |
| 2 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:31:9 |
3 | 3 | |
|
4 | 4 | LL | let i_think_continually = 2;
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
|
6 | 6 | |
|
7 | 7 | note: lint level defined here
|
8 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9 |
| 8 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9 |
9 | 9 | |
|
10 | 10 | LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
11 | 11 | | ^^^^^^
|
12 | 12 | = note: #[warn(unused_variables)] implied by #[warn(unused)]
|
13 | 13 |
|
14 | 14 | warning: unused variable: `corridors_of_light`
|
15 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:29:26 |
| 15 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38:26 |
16 | 16 | |
|
17 | 17 | LL | if let SoulHistory { corridors_of_light,
|
18 | 18 | | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
|
19 | 19 |
|
20 | 20 | warning: variable `hours_are_suns` is assigned to, but never used
|
21 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:30:26 |
| 21 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:39:26 |
22 | 22 | |
|
23 | 23 | LL | mut hours_are_suns,
|
24 | 24 | | ^^^^^^^^^^^^^^^^^^
|
25 | 25 | |
|
26 | 26 | = note: consider using `_hours_are_suns` instead
|
27 | 27 |
|
28 | 28 | warning: value assigned to `hours_are_suns` is never read
|
29 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:32:9 |
| 29 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:41:9 |
30 | 30 | |
|
31 | 31 | LL | hours_are_suns = false;
|
32 | 32 | | ^^^^^^^^^^^^^^
|
33 | 33 | |
|
34 | 34 | note: lint level defined here
|
35 |
| - --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:13:9 |
| 35 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9 |
36 | 36 | |
|
37 | 37 | LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
38 | 38 | | ^^^^^^
|
39 | 39 | = note: #[warn(unused_assignments)] implied by #[warn(unused)]
|
40 | 40 |
|
| 41 | +warning: unused variable: `case` |
| 42 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50:23 |
| 43 | + | |
| 44 | +LL | Large::Suit { case } => {} |
| 45 | + | ^^^^ help: try ignoring the field: `case: _` |
| 46 | + |
| 47 | +warning: unused variable: `case` |
| 48 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:55:24 |
| 49 | + | |
| 50 | +LL | &Large::Suit { case } => {} |
| 51 | + | ^^^^ help: try ignoring the field: `case: _` |
| 52 | + |
| 53 | +warning: unused variable: `case` |
| 54 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:60:27 |
| 55 | + | |
| 56 | +LL | box Large::Suit { case } => {} |
| 57 | + | ^^^^ help: try ignoring the field: `case: _` |
| 58 | + |
| 59 | +warning: unused variable: `case` |
| 60 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:65:24 |
| 61 | + | |
| 62 | +LL | (Large::Suit { case },) => {} |
| 63 | + | ^^^^ help: try ignoring the field: `case: _` |
| 64 | + |
| 65 | +warning: unused variable: `case` |
| 66 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:70:24 |
| 67 | + | |
| 68 | +LL | [Large::Suit { case }] => {} |
| 69 | + | ^^^^ help: try ignoring the field: `case: _` |
| 70 | + |
| 71 | +warning: unused variable: `case` |
| 72 | + --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:75:29 |
| 73 | + | |
| 74 | +LL | Tuple(Large::Suit { case }, ()) => {} |
| 75 | + | ^^^^ help: try ignoring the field: `case: _` |
| 76 | + |
0 commit comments