fork/rust

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

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

master
6.0 KiB196 linesraw
1error: methods called `from_*` usually take no `self`
2  --> $DIR/wrong_self_convention.rs:16:17
3   |
4LL |     fn from_i32(self) {}
5   |                 ^^^^
6   |
7   = help: consider choosing a less ambiguous name
8   = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]`
10
11error: methods called `from_*` usually take no `self`
12  --> $DIR/wrong_self_convention.rs:23:21
13   |
14LL |     pub fn from_i64(self) {}
15   |                     ^^^^
16   |
17   = help: consider choosing a less ambiguous name
18
19error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
20  --> $DIR/wrong_self_convention.rs:36:15
21   |
22LL |     fn as_i32(self) {}
23   |               ^^^^
24   |
25   = help: consider choosing a less ambiguous name
26
27error: methods called `into_*` usually take `self` by value
28  --> $DIR/wrong_self_convention.rs:39:17
29   |
30LL |     fn into_i32(&self) {}
31   |                 ^^^^^
32   |
33   = help: consider choosing a less ambiguous name
34
35error: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self`
36  --> $DIR/wrong_self_convention.rs:42:15
37   |
38LL |     fn is_i32(self) {}
39   |               ^^^^
40   |
41   = help: consider choosing a less ambiguous name
42
43error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
44  --> $DIR/wrong_self_convention.rs:45:15
45   |
46LL |     fn to_i32(self) {}
47   |               ^^^^
48   |
49   = help: consider choosing a less ambiguous name
50
51error: methods called `from_*` usually take no `self`
52  --> $DIR/wrong_self_convention.rs:48:17
53   |
54LL |     fn from_i32(self) {}
55   |                 ^^^^
56   |
57   = help: consider choosing a less ambiguous name
58
59error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
60  --> $DIR/wrong_self_convention.rs:51:19
61   |
62LL |     pub fn as_i64(self) {}
63   |                   ^^^^
64   |
65   = help: consider choosing a less ambiguous name
66
67error: methods called `into_*` usually take `self` by value
68  --> $DIR/wrong_self_convention.rs:53:21
69   |
70LL |     pub fn into_i64(&self) {}
71   |                     ^^^^^
72   |
73   = help: consider choosing a less ambiguous name
74
75error: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self`
76  --> $DIR/wrong_self_convention.rs:55:19
77   |
78LL |     pub fn is_i64(self) {}
79   |                   ^^^^
80   |
81   = help: consider choosing a less ambiguous name
82
83error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
84  --> $DIR/wrong_self_convention.rs:57:19
85   |
86LL |     pub fn to_i64(self) {}
87   |                   ^^^^
88   |
89   = help: consider choosing a less ambiguous name
90
91error: methods called `from_*` usually take no `self`
92  --> $DIR/wrong_self_convention.rs:59:21
93   |
94LL |     pub fn from_i64(self) {}
95   |                     ^^^^
96   |
97   = help: consider choosing a less ambiguous name
98
99error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
100  --> $DIR/wrong_self_convention.rs:105:19
101   |
102LL |         fn as_i32(self) {}
103   |                   ^^^^
104   |
105   = help: consider choosing a less ambiguous name
106
107error: methods called `into_*` usually take `self` by value
108  --> $DIR/wrong_self_convention.rs:109:25
109   |
110LL |         fn into_i32_ref(&self) {}
111   |                         ^^^^^
112   |
113   = help: consider choosing a less ambiguous name
114
115error: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self`
116  --> $DIR/wrong_self_convention.rs:112:19
117   |
118LL |         fn is_i32(self) {}
119   |                   ^^^^
120   |
121   = help: consider choosing a less ambiguous name
122
123error: methods called `from_*` usually take no `self`
124  --> $DIR/wrong_self_convention.rs:117:21
125   |
126LL |         fn from_i32(self) {}
127   |                     ^^^^
128   |
129   = help: consider choosing a less ambiguous name
130
131error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
132  --> $DIR/wrong_self_convention.rs:133:19
133   |
134LL |         fn as_i32(self);
135   |                   ^^^^
136   |
137   = help: consider choosing a less ambiguous name
138
139error: methods called `into_*` usually take `self` by value
140  --> $DIR/wrong_self_convention.rs:137:25
141   |
142LL |         fn into_i32_ref(&self);
143   |                         ^^^^^
144   |
145   = help: consider choosing a less ambiguous name
146
147error: methods called `is_*` usually take `self` by mutable reference or `self` by reference or no `self`
148  --> $DIR/wrong_self_convention.rs:140:19
149   |
150LL |         fn is_i32(self);
151   |                   ^^^^
152   |
153   = help: consider choosing a less ambiguous name
154
155error: methods called `from_*` usually take no `self`
156  --> $DIR/wrong_self_convention.rs:145:21
157   |
158LL |         fn from_i32(self);
159   |                     ^^^^
160   |
161   = help: consider choosing a less ambiguous name
162
163error: methods called `into_*` usually take `self` by value
164  --> $DIR/wrong_self_convention.rs:164:25
165   |
166LL |         fn into_i32_ref(&self);
167   |                         ^^^^^
168   |
169   = help: consider choosing a less ambiguous name
170
171error: methods called `from_*` usually take no `self`
172  --> $DIR/wrong_self_convention.rs:171:21
173   |
174LL |         fn from_i32(self);
175   |                     ^^^^
176   |
177   = help: consider choosing a less ambiguous name
178
179error: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value
180  --> $DIR/wrong_self_convention.rs:196:22
181   |
182LL |         fn to_u64_v2(&self) -> u64 {
183   |                      ^^^^^
184   |
185   = help: consider choosing a less ambiguous name
186
187error: methods with the following characteristics: (`to_*` and `self` type is not `Copy`) usually take `self` by reference
188  --> $DIR/wrong_self_convention.rs:206:19
189   |
190LL |         fn to_u64(self) -> u64 {
191   |                   ^^^^
192   |
193   = help: consider choosing a less ambiguous name
194
195error: aborting due to 24 previous errors
196