41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
|
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
|
||
|
--> $DIR/expect_nested_lint_levels.rs:23:1
|
||
|
|
|
||
|
LL | / #[expect(
|
||
|
LL | | unused_mut,
|
||
|
LL | | reason = "this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered"
|
||
|
LL | | )]
|
||
|
| |__^
|
||
|
|
|
||
|
= 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
|
||
|
--> $DIR/expect_nested_lint_levels.rs:7:1
|
||
|
|
|
||
|
LL | / #[expect(
|
||
|
LL | | unused_mut,
|
||
|
LL | | reason = "this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered"
|
||
|
LL | | )]
|
||
|
| |__^
|
||
|
|
|
||
|
= note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
|
||
|
|
||
|
warning: 3 warnings emitted
|
||
|
|