fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.6 KiB52 linesraw
1warning: variable does not need to be mutable
2  --> $DIR/expect_nested_lint_levels.rs:36:13
3   |
4LL |         let mut v = 0;
5   |             ----^
6   |             |
7   |             help: remove this `mut`
8   |
9   = note: this overrides the previous `expect` lint level and warns about the `unused_mut` lint here
10note: the lint level is defined here
11  --> $DIR/expect_nested_lint_levels.rs:31:9
12   |
13LL |         unused_mut,
14   |         ^^^^^^^^^^
15
16error: unused variable: `this_is_my_function`
17  --> $DIR/expect_nested_lint_levels.rs:48:9
18   |
19LL |     let this_is_my_function = 3;
20   |         ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_is_my_function`
21   |
22note: the lint level is defined here
23  --> $DIR/expect_nested_lint_levels.rs:45:10
24   |
25LL | #[forbid(unused_variables)]
26   |          ^^^^^^^^^^^^^^^^
27
28warning: this lint expectation is unfulfilled
29  --> $DIR/expect_nested_lint_levels.rs:7:5
30   |
31LL |     unused_mut,
32   |     ^^^^^^^^^^
33   |
34   = note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
35   = note: `#[warn(unfulfilled_lint_expectations)]` on by default
36
37warning: this lint expectation is unfulfilled
38  --> $DIR/expect_nested_lint_levels.rs:24:5
39   |
40LL |     unused_mut,
41   |     ^^^^^^^^^^
42   |
43   = note: this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
44
45warning: this lint expectation is unfulfilled
46  --> $DIR/expect_nested_lint_levels.rs:43:10
47   |
48LL | #[expect(unused_variables)]
49   |          ^^^^^^^^^^^^^^^^
50
51error: aborting due to previous error; 4 warnings emitted
52