File: force_warn_expected_lints_fulfilled.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 (40 lines) | stat: -rw-r--r-- 1,481 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
warning: denote infinite loops with `loop { ... }`
  --> $DIR/force_warn_expected_lints_fulfilled.rs:8:5
   |
LL |     while true {
   |     ^^^^^^^^^^ help: use `loop`
   |
   = note: requested on the command line with `--force-warn while-true`

warning: unused variable: `x`
  --> $DIR/force_warn_expected_lints_fulfilled.rs:18:9
   |
LL |     let x = 2;
   |         ^ help: if this is intentional, prefix it with an underscore: `_x`
   |
   = note: requested on the command line with `--force-warn unused-variables`

warning: unused variable: `fox_name`
  --> $DIR/force_warn_expected_lints_fulfilled.rs:26:9
   |
LL |     let fox_name = "Sir Nibbles";
   |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fox_name`

warning: variable does not need to be mutable
  --> $DIR/force_warn_expected_lints_fulfilled.rs:30:9
   |
LL |     let mut what_does_the_fox_say = "*ding* *deng* *dung*";
   |         ----^^^^^^^^^^^^^^^^^^^^^
   |         |
   |         help: remove this `mut`
   |
   = note: requested on the command line with `--force-warn unused-mut`

warning: unused variable: `this_should_fulfill_the_expectation`
  --> $DIR/force_warn_expected_lints_fulfilled.rs:41:9
   |
LL |     let this_should_fulfill_the_expectation = "The `#[allow]` has no power here";
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_this_should_fulfill_the_expectation`

warning: 5 warnings emitted