@@ -222,7 +222,7 @@ LL | const extern "C" fn c() {}
222
222
| +++++
223
223
224
224
error: this could be a `const fn`
225
- --> tests/ui/missing_const_for_fn/could_be_const.rs:153 :9
225
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:154 :9
226
226
|
227
227
LL | extern fn implicit_c() {}
228
228
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -233,7 +233,7 @@ LL | const extern fn implicit_c() {}
233
233
| +++++
234
234
235
235
error: this could be a `const fn`
236
- --> tests/ui/missing_const_for_fn/could_be_const.rs:170 :9
236
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:171 :9
237
237
|
238
238
LL | / pub fn new(strings: Vec<String>) -> Self {
239
239
LL | | Self { strings }
@@ -246,7 +246,7 @@ LL | pub const fn new(strings: Vec<String>) -> Self {
246
246
| +++++
247
247
248
248
error: this could be a `const fn`
249
- --> tests/ui/missing_const_for_fn/could_be_const.rs:175 :9
249
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:176 :9
250
250
|
251
251
LL | / pub fn empty() -> Self {
252
252
LL | | Self { strings: Vec::new() }
@@ -259,7 +259,7 @@ LL | pub const fn empty() -> Self {
259
259
| +++++
260
260
261
261
error: this could be a `const fn`
262
- --> tests/ui/missing_const_for_fn/could_be_const.rs:186 :9
262
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:187 :9
263
263
|
264
264
LL | / pub fn new(text: String) -> Self {
265
265
LL | | let vec = Vec::new();
@@ -273,7 +273,7 @@ LL | pub const fn new(text: String) -> Self {
273
273
| +++++
274
274
275
275
error: this could be a `const fn`
276
- --> tests/ui/missing_const_for_fn/could_be_const.rs:205 :5
276
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:206 :5
277
277
|
278
278
LL | fn alias_ty_is_projection(bar: <() as FooTrait>::Foo) {}
279
279
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -284,7 +284,7 @@ LL | const fn alias_ty_is_projection(bar: <() as FooTrait>::Foo) {}
284
284
| +++++
285
285
286
286
error: this could be a `const fn`
287
- --> tests/ui/missing_const_for_fn/could_be_const.rs:209 :5
287
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:210 :5
288
288
|
289
289
LL | extern "C-unwind" fn c_unwind() {}
290
290
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -295,7 +295,7 @@ LL | const extern "C-unwind" fn c_unwind() {}
295
295
| +++++
296
296
297
297
error: this could be a `const fn`
298
- --> tests/ui/missing_const_for_fn/could_be_const.rs:211 :5
298
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:212 :5
299
299
|
300
300
LL | extern "system" fn system() {}
301
301
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -306,7 +306,7 @@ LL | const extern "system" fn system() {}
306
306
| +++++
307
307
308
308
error: this could be a `const fn`
309
- --> tests/ui/missing_const_for_fn/could_be_const.rs:213 :5
309
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:214 :5
310
310
|
311
311
LL | extern "system-unwind" fn system_unwind() {}
312
312
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -317,7 +317,7 @@ LL | const extern "system-unwind" fn system_unwind() {}
317
317
| +++++
318
318
319
319
error: this could be a `const fn`
320
- --> tests/ui/missing_const_for_fn/could_be_const.rs:215 :5
320
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:216 :5
321
321
|
322
322
LL | pub extern "vectorcall" fn std_call() {}
323
323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -328,7 +328,7 @@ LL | pub const extern "vectorcall" fn std_call() {}
328
328
| +++++
329
329
330
330
error: this could be a `const fn`
331
- --> tests/ui/missing_const_for_fn/could_be_const.rs:217 :5
331
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:218 :5
332
332
|
333
333
LL | pub extern "vectorcall-unwind" fn std_call_unwind() {}
334
334
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments