1
1
error: this could be a `const fn`
2
- --> tests/ui/missing_const_for_fn/could_be_const.rs:15 :5
2
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:14 :5
3
3
|
4
4
LL | / pub fn new() -> Self {
5
5
LL | |
@@ -16,7 +16,7 @@ LL | pub const fn new() -> Self {
16
16
| +++++
17
17
18
18
error: this could be a `const fn`
19
- --> tests/ui/missing_const_for_fn/could_be_const.rs:21 :5
19
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:20 :5
20
20
|
21
21
LL | / fn const_generic_params<'a, T, const N: usize>(&self, b: &'a [T; N]) -> &'a [T; N] {
22
22
LL | |
@@ -30,7 +30,7 @@ LL | const fn const_generic_params<'a, T, const N: usize>(&self, b: &'a [T;
30
30
| +++++
31
31
32
32
error: this could be a `const fn`
33
- --> tests/ui/missing_const_for_fn/could_be_const.rs:28 :1
33
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:27 :1
34
34
|
35
35
LL | / fn one() -> i32 {
36
36
LL | |
@@ -44,7 +44,7 @@ LL | const fn one() -> i32 {
44
44
| +++++
45
45
46
46
error: this could be a `const fn`
47
- --> tests/ui/missing_const_for_fn/could_be_const.rs:34 :1
47
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:33 :1
48
48
|
49
49
LL | / fn two() -> i32 {
50
50
LL | |
@@ -59,7 +59,7 @@ LL | const fn two() -> i32 {
59
59
| +++++
60
60
61
61
error: this could be a `const fn`
62
- --> tests/ui/missing_const_for_fn/could_be_const.rs:41 :1
62
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:40 :1
63
63
|
64
64
LL | / fn string() -> String {
65
65
LL | |
@@ -73,7 +73,7 @@ LL | const fn string() -> String {
73
73
| +++++
74
74
75
75
error: this could be a `const fn`
76
- --> tests/ui/missing_const_for_fn/could_be_const.rs:47 :1
76
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:46 :1
77
77
|
78
78
LL | / unsafe fn four() -> i32 {
79
79
LL | |
@@ -87,7 +87,7 @@ LL | const unsafe fn four() -> i32 {
87
87
| +++++
88
88
89
89
error: this could be a `const fn`
90
- --> tests/ui/missing_const_for_fn/could_be_const.rs:53 :1
90
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:52 :1
91
91
|
92
92
LL | / fn generic<T>(t: T) -> T {
93
93
LL | |
@@ -101,7 +101,7 @@ LL | const fn generic<T>(t: T) -> T {
101
101
| +++++
102
102
103
103
error: this could be a `const fn`
104
- --> tests/ui/missing_const_for_fn/could_be_const.rs:62 :1
104
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:61 :1
105
105
|
106
106
LL | / fn generic_arr<T: Copy>(t: [T; 1]) -> T {
107
107
LL | |
@@ -115,7 +115,7 @@ LL | const fn generic_arr<T: Copy>(t: [T; 1]) -> T {
115
115
| +++++
116
116
117
117
error: this could be a `const fn`
118
- --> tests/ui/missing_const_for_fn/could_be_const.rs:76 :9
118
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:75 :9
119
119
|
120
120
LL | / pub fn b(self, a: &A) -> B {
121
121
LL | |
@@ -129,7 +129,7 @@ LL | pub const fn b(self, a: &A) -> B {
129
129
| +++++
130
130
131
131
error: this could be a `const fn`
132
- --> tests/ui/missing_const_for_fn/could_be_const.rs:86 :5
132
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:85 :5
133
133
|
134
134
LL | / fn const_fn_stabilized_before_msrv(byte: u8) {
135
135
LL | |
@@ -143,7 +143,7 @@ LL | const fn const_fn_stabilized_before_msrv(byte: u8) {
143
143
| +++++
144
144
145
145
error: this could be a `const fn`
146
- --> tests/ui/missing_const_for_fn/could_be_const.rs:98 :1
146
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:97 :1
147
147
|
148
148
LL | / fn msrv_1_46() -> i32 {
149
149
LL | |
@@ -157,7 +157,7 @@ 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:118 :1
160
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:117 :1
161
161
|
162
162
LL | fn d(this: D) {}
163
163
| ^^^^^^^^^^^^^^^^
@@ -168,7 +168,7 @@ LL | const fn d(this: D) {}
168
168
| +++++
169
169
170
170
error: this could be a `const fn`
171
- --> tests/ui/missing_const_for_fn/could_be_const.rs:126 :9
171
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:125 :9
172
172
|
173
173
LL | / fn deref_ptr_can_be_const(self) -> usize {
174
174
LL | |
@@ -182,7 +182,7 @@ LL | const fn deref_ptr_can_be_const(self) -> usize {
182
182
| +++++
183
183
184
184
error: this could be a `const fn`
185
- --> tests/ui/missing_const_for_fn/could_be_const.rs:131 :9
185
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:130 :9
186
186
|
187
187
LL | / fn deref_copied_val(self) -> usize {
188
188
LL | |
@@ -196,7 +196,7 @@ LL | const fn deref_copied_val(self) -> usize {
196
196
| +++++
197
197
198
198
error: this could be a `const fn`
199
- --> tests/ui/missing_const_for_fn/could_be_const.rs:142 :5
199
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:141 :5
200
200
|
201
201
LL | / fn union_access_can_be_const() {
202
202
LL | |
@@ -211,7 +211,7 @@ LL | const fn union_access_can_be_const() {
211
211
| +++++
212
212
213
213
error: this could be a `const fn`
214
- --> tests/ui/missing_const_for_fn/could_be_const.rs:150 :9
214
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:149 :9
215
215
|
216
216
LL | extern "C" fn c() {}
217
217
| ^^^^^^^^^^^^^^^^^^^^
@@ -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:154 :9
225
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:153 :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:171 :9
236
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:170 :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:176 :9
249
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:175 :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:187 :9
262
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:186 :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:206 :5
276
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:205 :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:210 :5
287
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:209 :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:212 :5
298
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:211 :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:214 :5
309
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:213 :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:216 :5
320
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:215 :5
321
321
|
322
322
LL | pub extern "stdcall" fn std_call() {}
323
323
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -328,7 +328,7 @@ LL | pub const extern "stdcall" 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:218 :5
331
+ --> tests/ui/missing_const_for_fn/could_be_const.rs:217 :5
332
332
|
333
333
LL | pub extern "stdcall-unwind" fn std_call_unwind() {}
334
334
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments