2018-01-31 20:56:01 -08:00
|
|
|
warning: unused variable: `i_think_continually`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:36:9
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let i_think_continually = 2;
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using `_i_think_continually` instead
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-04-30 00:51:02 +01:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
|
|
|
|
2018-05-11 22:24:04 +08:00
|
|
|
warning: unused variable: `mut_unused_var`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:43:13
|
2018-05-11 22:24:04 +08:00
|
|
|
|
|
|
|
|
LL | let mut mut_unused_var = 1;
|
|
|
|
| ^^^^^^^^^^^^^^ help: consider using `_mut_unused_var` instead
|
|
|
|
|
|
|
|
warning: unused variable: `var`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:14
|
2018-05-11 22:24:04 +08:00
|
|
|
|
|
|
|
|
LL | let (mut var, unused_var) = (1, 2);
|
|
|
|
| ^^^ help: consider using `_var` instead
|
|
|
|
|
|
|
|
warning: unused variable: `unused_var`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:19
|
2018-05-11 22:24:04 +08:00
|
|
|
|
|
|
|
|
LL | let (mut var, unused_var) = (1, 2);
|
|
|
|
| ^^^^^^^^^^ help: consider using `_unused_var` instead
|
|
|
|
|
2018-01-31 20:56:01 -08:00
|
|
|
warning: unused variable: `corridors_of_light`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:47:26
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | if let SoulHistory { corridors_of_light,
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `corridors_of_light: _`
|
|
|
|
|
|
|
|
warning: variable `hours_are_suns` is assigned to, but never used
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:48:30
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mut hours_are_suns,
|
2018-05-11 22:24:04 +08:00
|
|
|
| ^^^^^^^^^^^^^^
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
|
|
|
= note: consider using `_hours_are_suns` instead
|
|
|
|
|
|
|
|
warning: value assigned to `hours_are_suns` is never read
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:50:9
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | hours_are_suns = false;
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-04-30 00:51:02 +01:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
|
2018-01-31 20:56:01 -08:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
2018-01-31 20:56:01 -08:00
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_assignments)] implied by #[warn(unused)]
|
|
|
|
|
2018-05-18 00:07:31 -07:00
|
|
|
warning: unused variable: `fire`
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:54:32
|
|
|
|
|
|
|
|
|
LL | let LovelyAmbition { lips, fire } = the_spirit;
|
|
|
|
| ^^^^ help: try ignoring the field: `fire: _`
|
|
|
|
|
2018-04-30 00:40:11 +01:00
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:63:23
|
2018-04-30 01:27:37 +01:00
|
|
|
|
|
|
|
|
LL | Large::Suit { case } => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:68:24
|
2018-04-30 00:40:11 +01:00
|
|
|
|
|
|
|
|
LL | &Large::Suit { case } => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
2018-04-30 00:51:02 +01:00
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:73:27
|
2018-04-30 00:51:02 +01:00
|
|
|
|
|
|
|
|
LL | box Large::Suit { case } => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
2018-04-30 01:27:37 +01:00
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:78:24
|
2018-04-30 01:27:37 +01:00
|
|
|
|
|
|
|
|
LL | (Large::Suit { case },) => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:83:24
|
2018-04-30 01:27:37 +01:00
|
|
|
|
|
|
|
|
LL | [Large::Suit { case }] => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
|
|
|
warning: unused variable: `case`
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:88:29
|
2018-04-30 01:27:37 +01:00
|
|
|
|
|
|
|
|
LL | Tuple(Large::Suit { case }, ()) => {}
|
|
|
|
| ^^^^ help: try ignoring the field: `case: _`
|
|
|
|
|
2018-05-11 22:24:04 +08:00
|
|
|
warning: variable does not need to be mutable
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:43:9
|
2018-05-11 22:24:04 +08:00
|
|
|
|
|
|
|
|
LL | let mut mut_unused_var = 1;
|
|
|
|
| ----^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:15:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
|
|
|
| ^^^^^^
|
|
|
|
= note: #[warn(unused_mut)] implied by #[warn(unused)]
|
|
|
|
|
|
|
|
warning: variable does not need to be mutable
|
2018-05-18 00:07:31 -07:00
|
|
|
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:45:10
|
2018-05-11 22:24:04 +08:00
|
|
|
|
|
|
|
|
LL | let (mut var, unused_var) = (1, 2);
|
|
|
|
| ----^^^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|