fork/rust

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

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

master
2.2 KiB76 linesraw
1error: unused `self` argument
2  --> $DIR/unused_self.rs:11:29
3   |
4LL |         fn unused_self_move(self) {}
5   |                             ^^^^
6   |
7   = help: consider refactoring to an associated function
8   = note: `-D clippy::unused-self` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::unused_self)]`
10
11error: unused `self` argument
12  --> $DIR/unused_self.rs:13:28
13   |
14LL |         fn unused_self_ref(&self) {}
15   |                            ^^^^^
16   |
17   = help: consider refactoring to an associated function
18
19error: unused `self` argument
20  --> $DIR/unused_self.rs:15:32
21   |
22LL |         fn unused_self_mut_ref(&mut self) {}
23   |                                ^^^^^^^^^
24   |
25   = help: consider refactoring to an associated function
26
27error: unused `self` argument
28  --> $DIR/unused_self.rs:17:32
29   |
30LL |         fn unused_self_pin_ref(self: Pin<&Self>) {}
31   |                                ^^^^
32   |
33   = help: consider refactoring to an associated function
34
35error: unused `self` argument
36  --> $DIR/unused_self.rs:19:36
37   |
38LL |         fn unused_self_pin_mut_ref(self: Pin<&mut Self>) {}
39   |                                    ^^^^
40   |
41   = help: consider refactoring to an associated function
42
43error: unused `self` argument
44  --> $DIR/unused_self.rs:21:35
45   |
46LL |         fn unused_self_pin_nested(self: Pin<Arc<Self>>) {}
47   |                                   ^^^^
48   |
49   = help: consider refactoring to an associated function
50
51error: unused `self` argument
52  --> $DIR/unused_self.rs:23:28
53   |
54LL |         fn unused_self_box(self: Box<Self>) {}
55   |                            ^^^^
56   |
57   = help: consider refactoring to an associated function
58
59error: unused `self` argument
60  --> $DIR/unused_self.rs:25:40
61   |
62LL |         fn unused_with_other_used_args(&self, x: u8, y: u8) -> u8 {
63   |                                        ^^^^^
64   |
65   = help: consider refactoring to an associated function
66
67error: unused `self` argument
68  --> $DIR/unused_self.rs:29:37
69   |
70LL |         fn unused_self_class_method(&self) {
71   |                                     ^^^^^
72   |
73   = help: consider refactoring to an associated function
74
75error: aborting due to 9 previous errors
76