11warning: unused variable: `i_think_continually`
2- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:28 :9
2+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:31 :9
33 |
44LL | let i_think_continually = 2;
55 | ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
@@ -12,21 +12,21 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
1212 = note: #[warn(unused_variables)] implied by #[warn(unused)]
1313
1414warning: unused variable: `corridors_of_light`
15- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:35 :26
15+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38 :26
1616 |
1717LL | if let SoulHistory { corridors_of_light,
1818 | ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
1919
2020warning: variable `hours_are_suns` is assigned to, but never used
21- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:36 :26
21+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:39 :26
2222 |
2323LL | mut hours_are_suns,
2424 | ^^^^^^^^^^^^^^^^^^
2525 |
2626 = note: consider using `_hours_are_suns` instead
2727
2828warning: value assigned to `hours_are_suns` is never read
29- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:38 :9
29+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:41 :9
3030 |
3131LL | hours_are_suns = false;
3232 | ^^^^^^^^^^^^^^
@@ -39,14 +39,38 @@ LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
3939 = note: #[warn(unused_assignments)] implied by #[warn(unused)]
4040
4141warning: unused variable: `case`
42- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:46:24
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
4349 |
4450LL | &Large::Suit { case } => {}
4551 | ^^^^ help: try ignoring the field: `case: _`
4652
4753warning: unused variable: `case`
48- --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50 :27
54+ --> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:60 :27
4955 |
5056LL | box Large::Suit { case } => {}
5157 | ^^^^ help: try ignoring the field: `case: _`
5258
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