fork/rust

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

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

master
3.3 KiB101 linesraw
1error: unnecessary structure name repetition
2  --> $DIR/use_self_trait.rs:19:18
3   |
4LL |     fn refs(p1: &Bad) -> &Bad {
5   |                  ^^^ help: use the applicable keyword: `Self`
6   |
7   = note: `-D clippy::use-self` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::use_self)]`
9
10error: unnecessary structure name repetition
11  --> $DIR/use_self_trait.rs:19:27
12   |
13LL |     fn refs(p1: &Bad) -> &Bad {
14   |                           ^^^ help: use the applicable keyword: `Self`
15
16error: unnecessary structure name repetition
17  --> $DIR/use_self_trait.rs:23:33
18   |
19LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
20   |                                 ^^^ help: use the applicable keyword: `Self`
21
22error: unnecessary structure name repetition
23  --> $DIR/use_self_trait.rs:23:49
24   |
25LL |     fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
26   |                                                 ^^^ help: use the applicable keyword: `Self`
27
28error: unnecessary structure name repetition
29  --> $DIR/use_self_trait.rs:27:26
30   |
31LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
32   |                          ^^^ help: use the applicable keyword: `Self`
33
34error: unnecessary structure name repetition
35  --> $DIR/use_self_trait.rs:27:39
36   |
37LL |     fn mut_refs(p1: &mut Bad) -> &mut Bad {
38   |                                       ^^^ help: use the applicable keyword: `Self`
39
40error: unnecessary structure name repetition
41  --> $DIR/use_self_trait.rs:31:24
42   |
43LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
44   |                        ^^^ help: use the applicable keyword: `Self`
45
46error: unnecessary structure name repetition
47  --> $DIR/use_self_trait.rs:31:42
48   |
49LL |     fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
50   |                                          ^^^ help: use the applicable keyword: `Self`
51
52error: unnecessary structure name repetition
53  --> $DIR/use_self_trait.rs:33:16
54   |
55LL |     fn vals(_: Bad) -> Bad {
56   |                ^^^ help: use the applicable keyword: `Self`
57
58error: unnecessary structure name repetition
59  --> $DIR/use_self_trait.rs:33:24
60   |
61LL |     fn vals(_: Bad) -> Bad {
62   |                        ^^^ help: use the applicable keyword: `Self`
63
64error: unnecessary structure name repetition
65  --> $DIR/use_self_trait.rs:34:9
66   |
67LL |         Bad
68   |         ^^^ help: use the applicable keyword: `Self`
69
70error: unnecessary structure name repetition
71  --> $DIR/use_self_trait.rs:39:19
72   |
73LL |     type Output = Bad;
74   |                   ^^^ help: use the applicable keyword: `Self`
75
76error: unnecessary structure name repetition
77  --> $DIR/use_self_trait.rs:41:23
78   |
79LL |     fn mul(self, rhs: Bad) -> Bad {
80   |                       ^^^ help: use the applicable keyword: `Self`
81
82error: unnecessary structure name repetition
83  --> $DIR/use_self_trait.rs:41:31
84   |
85LL |     fn mul(self, rhs: Bad) -> Bad {
86   |                               ^^^ help: use the applicable keyword: `Self`
87
88error: unnecessary structure name repetition
89  --> $DIR/use_self_trait.rs:48:9
90   |
91LL |         Bad
92   |         ^^^ help: use the applicable keyword: `Self`
93
94error: unnecessary structure name repetition
95  --> $DIR/use_self_trait.rs:145:13
96   |
97LL |             std::fmt::Error // Should lint
98   |             ^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
99
100error: aborting due to 16 previous errors
101