@@ -30,21 +30,21 @@ LL | let (mut var, unused_var) = (1, 2);
30
30
| ^^^^^^^^^^ help: consider prefixing with an underscore: `_unused_var`
31
31
32
32
warning: unused variable: `corridors_of_light`
33
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:37 :26
33
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:40 :26
34
34
|
35
35
LL | if let SoulHistory { corridors_of_light,
36
36
| ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
37
37
38
38
warning: variable `hours_are_suns` is assigned to, but never used
39
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38 :30
39
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:41 :30
40
40
|
41
41
LL | mut hours_are_suns,
42
42
| ^^^^^^^^^^^^^^
43
43
|
44
44
= note: consider using `_hours_are_suns` instead
45
45
46
46
warning: value assigned to `hours_are_suns` is never read
47
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:40 :9
47
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:43 :9
48
48
|
49
49
LL | hours_are_suns = false;
50
50
| ^^^^^^^^^^^^^^
@@ -58,43 +58,43 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
58
58
= help: maybe it is overwritten before being read?
59
59
60
60
warning: unused variable: `fire`
61
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:44 :32
61
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:47 :32
62
62
|
63
63
LL | let LovelyAmbition { lips, fire } = the_spirit;
64
64
| ^^^^ help: try ignoring the field: `fire: _`
65
65
66
66
warning: unused variable: `case`
67
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:53 :23
67
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:56 :23
68
68
|
69
69
LL | Large::Suit { case } => {}
70
70
| ^^^^ help: try ignoring the field: `case: _`
71
71
72
72
warning: unused variable: `case`
73
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:58 :24
73
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:61 :24
74
74
|
75
75
LL | &Large::Suit { case } => {}
76
76
| ^^^^ help: try ignoring the field: `case: _`
77
77
78
78
warning: unused variable: `case`
79
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:63 :27
79
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:66 :27
80
80
|
81
81
LL | box Large::Suit { case } => {}
82
82
| ^^^^ help: try ignoring the field: `case: _`
83
83
84
84
warning: unused variable: `case`
85
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:68 :24
85
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:71 :24
86
86
|
87
87
LL | (Large::Suit { case },) => {}
88
88
| ^^^^ help: try ignoring the field: `case: _`
89
89
90
90
warning: unused variable: `case`
91
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:73 :24
91
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:76 :24
92
92
|
93
93
LL | [Large::Suit { case }] => {}
94
94
| ^^^^ help: try ignoring the field: `case: _`
95
95
96
96
warning: unused variable: `case`
97
- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:78 :29
97
+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:81 :29
98
98
|
99
99
LL | Tuple(Large::Suit { case }, ()) => {}
100
100
| ^^^^ help: try ignoring the field: `case: _`
0 commit comments