fork/rust

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

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

master
1.8 KiB64 linesraw
1warning: unused variable: `e`
2  --> $DIR/liveness-consts.rs:24:13
3   |
4LL |         let e = 1;
5   |             ^ help: if this is intentional, prefix it with an underscore: `_e`
6   |
7note: the lint level is defined here
8  --> $DIR/liveness-consts.rs:2:9
9   |
10LL | #![warn(unused)]
11   |         ^^^^^^
12   = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
13
14warning: unused variable: `s`
15  --> $DIR/liveness-consts.rs:33:24
16   |
17LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8;  { let z = 18; 100 }] {
18   |                        ^ help: if this is intentional, prefix it with an underscore: `_s`
19
20warning: unused variable: `z`
21  --> $DIR/liveness-consts.rs:33:55
22   |
23LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8;  { let z = 18; 100 }] {
24   |                                                       ^ help: if this is intentional, prefix it with an underscore: `_z`
25
26warning: unused variable: `z`
27  --> $DIR/liveness-consts.rs:60:13
28   |
29LL |         let z = 42;
30   |             ^ help: if this is intentional, prefix it with an underscore: `_z`
31
32warning: variable `a` is assigned to, but never used
33  --> $DIR/liveness-consts.rs:7:13
34   |
35LL |     let mut a = 0;
36   |             ^
37   |
38   = note: consider using `_a` instead
39
40warning: value assigned to `b` is never read
41  --> $DIR/liveness-consts.rs:17:5
42   |
43LL |     b += 1;
44   |     ^
45   |
46   = help: maybe it is overwritten before being read?
47   = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
48
49warning: value assigned to `t` is never read
50  --> $DIR/liveness-consts.rs:42:9
51   |
52LL |         t = t + t;
53   |         ^
54   |
55   = help: maybe it is overwritten before being read?
56
57warning: unused variable: `w`
58  --> $DIR/liveness-consts.rs:49:13
59   |
60LL |         let w = 10;
61   |             ^ help: if this is intentional, prefix it with an underscore: `_w`
62
63warning: 8 warnings emitted
64