File: expect_nested_lint_levels.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (52 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
warning: variable does not need to be mutable
  --> $DIR/expect_nested_lint_levels.rs:35: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:30:9
   |
LL |         unused_mut,
   |         ^^^^^^^^^^

error: unused variable: `this_is_my_function`
  --> $DIR/expect_nested_lint_levels.rs:47: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:44:10
   |
LL | #[forbid(unused_variables)]
   |          ^^^^^^^^^^^^^^^^

warning: this lint expectation is unfulfilled
  --> $DIR/expect_nested_lint_levels.rs:6:5
   |
LL |     unused_mut,
   |     ^^^^^^^^^^
   |
   = note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
   = note: `#[warn(unfulfilled_lint_expectations)]` on by default

warning: this lint expectation is unfulfilled
  --> $DIR/expect_nested_lint_levels.rs:23:5
   |
LL |     unused_mut,
   |     ^^^^^^^^^^
   |
   = 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:42:10
   |
LL | #[expect(unused_variables)]
   |          ^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error; 4 warnings emitted