2021-08-06 16:38:09 -05:00
|
|
|
warning: variable does not need to be mutable
|
|
|
|
--> $DIR/expect_nested_lint_levels.rs:37:13
|
|
|
|
|
|
|
|
|
LL | let mut v = 0;
|
|
|
|
| ----^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
|
|
|
= note: this overrides the previous `expect` lint level and warns about the `unused_mut` lint here
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/expect_nested_lint_levels.rs:32:9
|
|
|
|
|
|
|
|
|
LL | unused_mut,
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: this lint expectation is unfulfilled
|
2021-11-24 14:57:38 -06:00
|
|
|
--> $DIR/expect_nested_lint_levels.rs:24:5
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
2021-11-24 14:57:38 -06:00
|
|
|
LL | unused_mut,
|
|
|
|
| ^^^^^^^^^^
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
|
|
|
= note: `#[warn(unfulfilled_lint_expectations)]` on by default
|
|
|
|
= note: this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
|
|
|
|
|
|
|
|
warning: this lint expectation is unfulfilled
|
2021-11-24 14:57:38 -06:00
|
|
|
--> $DIR/expect_nested_lint_levels.rs:8:5
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
2021-11-24 14:57:38 -06:00
|
|
|
LL | unused_mut,
|
|
|
|
| ^^^^^^^^^^
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
|
|
|
= note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
|
|
|
|
|
|
|
|
warning: 3 warnings emitted
|
|
|
|
|