1- error: methods called `from_*` usually take no self
1+ error: methods called `from_*` usually take no ` self`
22 --> $DIR/wrong_self_convention.rs:18:17
33 |
44LL | fn from_i32(self) {}
@@ -7,183 +7,183 @@ LL | fn from_i32(self) {}
77 = note: `-D clippy::wrong-self-convention` implied by `-D warnings`
88 = help: consider choosing a less ambiguous name
99
10- error: methods called `from_*` usually take no self
10+ error: methods called `from_*` usually take no ` self`
1111 --> $DIR/wrong_self_convention.rs:24:21
1212 |
1313LL | pub fn from_i64(self) {}
1414 | ^^^^
1515 |
1616 = help: consider choosing a less ambiguous name
1717
18- error: methods called `as_*` usually take self by reference or self by mutable reference
18+ error: methods called `as_*` usually take ` self` by reference or ` self` by mutable reference
1919 --> $DIR/wrong_self_convention.rs:36:15
2020 |
2121LL | fn as_i32(self) {}
2222 | ^^^^
2323 |
2424 = help: consider choosing a less ambiguous name
2525
26- error: methods called `into_*` usually take self by value
26+ error: methods called `into_*` usually take ` self` by value
2727 --> $DIR/wrong_self_convention.rs:38:17
2828 |
2929LL | fn into_i32(&self) {}
3030 | ^^^^^
3131 |
3232 = help: consider choosing a less ambiguous name
3333
34- error: methods called `is_*` usually take self by reference or no self
34+ error: methods called `is_*` usually take ` self` by reference or no ` self`
3535 --> $DIR/wrong_self_convention.rs:40:15
3636 |
3737LL | fn is_i32(self) {}
3838 | ^^^^
3939 |
4040 = help: consider choosing a less ambiguous name
4141
42- error: methods with the following characteristics: (`to_*` and `self type is not Copy`) usually take self by reference
42+ error: methods with the following characteristics: (`to_*` and `self` type is not ` Copy`) usually take ` self` by reference
4343 --> $DIR/wrong_self_convention.rs:42:15
4444 |
4545LL | fn to_i32(self) {}
4646 | ^^^^
4747 |
4848 = help: consider choosing a less ambiguous name
4949
50- error: methods called `from_*` usually take no self
50+ error: methods called `from_*` usually take no ` self`
5151 --> $DIR/wrong_self_convention.rs:44:17
5252 |
5353LL | fn from_i32(self) {}
5454 | ^^^^
5555 |
5656 = help: consider choosing a less ambiguous name
5757
58- error: methods called `as_*` usually take self by reference or self by mutable reference
58+ error: methods called `as_*` usually take ` self` by reference or ` self` by mutable reference
5959 --> $DIR/wrong_self_convention.rs:46:19
6060 |
6161LL | pub fn as_i64(self) {}
6262 | ^^^^
6363 |
6464 = help: consider choosing a less ambiguous name
6565
66- error: methods called `into_*` usually take self by value
66+ error: methods called `into_*` usually take ` self` by value
6767 --> $DIR/wrong_self_convention.rs:47:21
6868 |
6969LL | pub fn into_i64(&self) {}
7070 | ^^^^^
7171 |
7272 = help: consider choosing a less ambiguous name
7373
74- error: methods called `is_*` usually take self by reference or no self
74+ error: methods called `is_*` usually take ` self` by reference or no ` self`
7575 --> $DIR/wrong_self_convention.rs:48:19
7676 |
7777LL | pub fn is_i64(self) {}
7878 | ^^^^
7979 |
8080 = help: consider choosing a less ambiguous name
8181
82- error: methods with the following characteristics: (`to_*` and `self type is not Copy`) usually take self by reference
82+ error: methods with the following characteristics: (`to_*` and `self` type is not ` Copy`) usually take ` self` by reference
8383 --> $DIR/wrong_self_convention.rs:49:19
8484 |
8585LL | pub fn to_i64(self) {}
8686 | ^^^^
8787 |
8888 = help: consider choosing a less ambiguous name
8989
90- error: methods called `from_*` usually take no self
90+ error: methods called `from_*` usually take no ` self`
9191 --> $DIR/wrong_self_convention.rs:50:21
9292 |
9393LL | pub fn from_i64(self) {}
9494 | ^^^^
9595 |
9696 = help: consider choosing a less ambiguous name
9797
98- error: methods called `as_*` usually take self by reference or self by mutable reference
98+ error: methods called `as_*` usually take ` self` by reference or ` self` by mutable reference
9999 --> $DIR/wrong_self_convention.rs:95:19
100100 |
101101LL | fn as_i32(self) {}
102102 | ^^^^
103103 |
104104 = help: consider choosing a less ambiguous name
105105
106- error: methods called `into_*` usually take self by value
106+ error: methods called `into_*` usually take ` self` by value
107107 --> $DIR/wrong_self_convention.rs:98:25
108108 |
109109LL | fn into_i32_ref(&self) {}
110110 | ^^^^^
111111 |
112112 = help: consider choosing a less ambiguous name
113113
114- error: methods called `is_*` usually take self by reference or no self
114+ error: methods called `is_*` usually take ` self` by reference or no ` self`
115115 --> $DIR/wrong_self_convention.rs:100:19
116116 |
117117LL | fn is_i32(self) {}
118118 | ^^^^
119119 |
120120 = help: consider choosing a less ambiguous name
121121
122- error: methods called `from_*` usually take no self
122+ error: methods called `from_*` usually take no ` self`
123123 --> $DIR/wrong_self_convention.rs:104:21
124124 |
125125LL | fn from_i32(self) {}
126126 | ^^^^
127127 |
128128 = help: consider choosing a less ambiguous name
129129
130- error: methods called `as_*` usually take self by reference or self by mutable reference
130+ error: methods called `as_*` usually take ` self` by reference or ` self` by mutable reference
131131 --> $DIR/wrong_self_convention.rs:119:19
132132 |
133133LL | fn as_i32(self);
134134 | ^^^^
135135 |
136136 = help: consider choosing a less ambiguous name
137137
138- error: methods called `into_*` usually take self by value
138+ error: methods called `into_*` usually take ` self` by value
139139 --> $DIR/wrong_self_convention.rs:122:25
140140 |
141141LL | fn into_i32_ref(&self);
142142 | ^^^^^
143143 |
144144 = help: consider choosing a less ambiguous name
145145
146- error: methods called `is_*` usually take self by reference or no self
146+ error: methods called `is_*` usually take ` self` by reference or no ` self`
147147 --> $DIR/wrong_self_convention.rs:124:19
148148 |
149149LL | fn is_i32(self);
150150 | ^^^^
151151 |
152152 = help: consider choosing a less ambiguous name
153153
154- error: methods called `from_*` usually take no self
154+ error: methods called `from_*` usually take no ` self`
155155 --> $DIR/wrong_self_convention.rs:128:21
156156 |
157157LL | fn from_i32(self);
158158 | ^^^^
159159 |
160160 = help: consider choosing a less ambiguous name
161161
162- error: methods called `into_*` usually take self by value
162+ error: methods called `into_*` usually take ` self` by value
163163 --> $DIR/wrong_self_convention.rs:146:25
164164 |
165165LL | fn into_i32_ref(&self);
166166 | ^^^^^
167167 |
168168 = help: consider choosing a less ambiguous name
169169
170- error: methods called `from_*` usually take no self
170+ error: methods called `from_*` usually take no ` self`
171171 --> $DIR/wrong_self_convention.rs:152:21
172172 |
173173LL | fn from_i32(self);
174174 | ^^^^
175175 |
176176 = help: consider choosing a less ambiguous name
177177
178- error: methods with the following characteristics: (`to_*` and `self type is Copy`) usually take self by value
178+ error: methods with the following characteristics: (`to_*` and `self` type is ` Copy`) usually take ` self` by value
179179 --> $DIR/wrong_self_convention.rs:181:22
180180 |
181181LL | fn to_u64_v2(&self) -> u64 {
182182 | ^^^^^
183183 |
184184 = help: consider choosing a less ambiguous name
185185
186- error: methods with the following characteristics: (`to_*` and `self type is not Copy`) usually take self by reference
186+ error: methods with the following characteristics: (`to_*` and `self` type is not ` Copy`) usually take ` self` by reference
187187 --> $DIR/wrong_self_convention.rs:190:19
188188 |
189189LL | fn to_u64(self) -> u64 {
0 commit comments