@@ -157,7 +157,13 @@ LL | const fn msrv_1_46() -> i32 {
157
157
| +++++
158
158
159
159
error: this could be a `const fn`
160
- --> tests/ui/missing_const_for_fn/could_be_const.rs:122:9
160
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:117:1
161
+ |
162
+ LL | fn d(this: D) {}
163
+ | ^^^^^^^^^^^^^^^^
164
+
165
+ error: this could be a `const fn`
166
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:125:9
161
167
|
162
168
LL | / fn deref_ptr_can_be_const(self) -> usize {
163
169
LL | |
@@ -171,7 +177,7 @@ LL | const fn deref_ptr_can_be_const(self) -> usize {
171
177
| +++++
172
178
173
179
error: this could be a `const fn`
174
- --> tests/ui/missing_const_for_fn/could_be_const.rs:127 :9
180
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:130 :9
175
181
|
176
182
LL | / fn deref_copied_val(self) -> usize {
177
183
LL | |
@@ -185,7 +191,7 @@ LL | const fn deref_copied_val(self) -> usize {
185
191
| +++++
186
192
187
193
error: this could be a `const fn`
188
- --> tests/ui/missing_const_for_fn/could_be_const.rs:138 :5
194
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:141 :5
189
195
|
190
196
LL | / fn union_access_can_be_const() {
191
197
LL | |
@@ -200,7 +206,7 @@ LL | const fn union_access_can_be_const() {
200
206
| +++++
201
207
202
208
error: this could be a `const fn`
203
- --> tests/ui/missing_const_for_fn/could_be_const.rs:152 :9
209
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:155 :9
204
210
|
205
211
LL | / pub fn new(strings: Vec<String>) -> Self {
206
212
LL | | Self { strings }
@@ -213,7 +219,7 @@ LL | pub const fn new(strings: Vec<String>) -> Self {
213
219
| +++++
214
220
215
221
error: this could be a `const fn`
216
- --> tests/ui/missing_const_for_fn/could_be_const.rs:157 :9
222
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:160 :9
217
223
|
218
224
LL | / pub fn empty() -> Self {
219
225
LL | | Self { strings: Vec::new() }
@@ -226,7 +232,7 @@ LL | pub const fn empty() -> Self {
226
232
| +++++
227
233
228
234
error: this could be a `const fn`
229
- --> tests/ui/missing_const_for_fn/could_be_const.rs:168 :9
235
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:171 :9
230
236
|
231
237
LL | / pub fn new(text: String) -> Self {
232
238
LL | | let vec = Vec::new();
@@ -239,5 +245,5 @@ help: make the function `const`
239
245
LL | pub const fn new(text: String) -> Self {
240
246
| +++++
241
247
242
- error: aborting due to 17 previous errors
248
+ error: aborting due to 18 previous errors
243
249
0 commit comments