fork/rust

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

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

master
1021 B44 linesraw
1warning: useless assignment of variable of type `i32` to itself
2  --> $DIR/self-assign.rs:10:5
3   |
4LL |     x = x;
5   |     ^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/self-assign.rs:6:9
9   |
10LL | #![warn(dead_code)]
11   |         ^^^^^^^^^
12
13warning: useless assignment of variable of type `i32` to itself
14  --> $DIR/self-assign.rs:13:5
15   |
16LL |     x = (x);
17   |     ^^^^^^^
18
19warning: useless assignment of variable of type `S` to itself
20  --> $DIR/self-assign.rs:22:5
21   |
22LL |     s = s;
23   |     ^^^^^
24
25warning: useless assignment of field of type `&str` to itself
26  --> $DIR/self-assign.rs:25:5
27   |
28LL |     s.f = s.f;
29   |     ^^^^^^^^^
30
31warning: useless assignment of field of type `Box<i32>` to itself
32  --> $DIR/self-assign.rs:34:5
33   |
34LL |     n3.n.0.n.x = n3.n.0.n.x;
35   |     ^^^^^^^^^^^^^^^^^^^^^^^
36
37warning: useless assignment of field of type `i32` to itself
38  --> $DIR/self-assign.rs:38:5
39   |
40LL |     t.1.0.2.1 = t.1.0.2.1;
41   |     ^^^^^^^^^^^^^^^^^^^^^
42
43warning: 6 warnings emitted
44