2021-08-06 16:38:09 -05:00
|
|
|
warning: variable does not need to be mutable
|
2021-11-25 03:45:25 -06:00
|
|
|
--> $DIR/expect_nested_lint_levels.rs:36:13
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
|
|
|
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
|
2021-11-25 03:45:25 -06:00
|
|
|
--> $DIR/expect_nested_lint_levels.rs:31:9
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
|
|
|
LL | unused_mut,
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2023-02-16 04:06:59 -06:00
|
|
|
error: unused variable: `this_is_my_function`
|
|
|
|
--> $DIR/expect_nested_lint_levels.rs:48:9
|
|
|
|
|
|
|
|
|
LL | let this_is_my_function = 3;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_my_function`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/expect_nested_lint_levels.rs:45:10
|
|
|
|
|
|
|
|
|
LL | #[forbid(unused_variables)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-08-06 16:38:09 -05:00
|
|
|
warning: this lint expectation is unfulfilled
|
2022-03-02 11:10:07 -06:00
|
|
|
--> $DIR/expect_nested_lint_levels.rs:7: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
|
|
|
|
|
2022-03-02 11:10:07 -06:00
|
|
|
= note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(unfulfilled_lint_expectations)]` on by default
|
2021-08-06 16:38:09 -05:00
|
|
|
|
|
|
|
warning: this lint expectation is unfulfilled
|
2022-03-02 11:10:07 -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
|
|
|
|
|
2022-03-02 11:10:07 -06:00
|
|
|
= note: this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
|
2021-08-06 16:38:09 -05:00
|
|
|
|
2021-11-25 03:45:25 -06:00
|
|
|
warning: this lint expectation is unfulfilled
|
|
|
|
--> $DIR/expect_nested_lint_levels.rs:43:10
|
|
|
|
|
|
|
|
|
LL | #[expect(unused_variables)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error; 4 warnings emitted
|
2021-08-06 16:38:09 -05:00
|
|
|
|