@@ -220,7 +220,7 @@ impl Type {
220
220
221
221
/// Constructor for the type of the `a:` fragment.
222
222
pub const fn cast_alt ( self ) -> Result < Self , ErrorKind > {
223
- // FIXME need to do manual `?` because ? is not supported in constfns.
223
+ // FIXME need to do manual `?` because ? is not supported in constfns. (Also below.)
224
224
Ok ( Type {
225
225
corr : match Correctness :: cast_alt ( self . corr ) {
226
226
Ok ( x) => x,
@@ -232,7 +232,6 @@ impl Type {
232
232
233
233
/// Constructor for the type of the `s:` fragment.
234
234
pub const fn cast_swap ( self ) -> Result < Self , ErrorKind > {
235
- // FIXME need to do manual `?` because ? is not supported in constfns.
236
235
Ok ( Type {
237
236
corr : match Correctness :: cast_swap ( self . corr ) {
238
237
Ok ( x) => x,
@@ -255,7 +254,6 @@ impl Type {
255
254
256
255
/// Constructor for the type of the `d:` fragment.
257
256
pub const fn cast_dupif ( self ) -> Result < Self , ErrorKind > {
258
- // FIXME need to do manual `?` because ? is not supported in constfns.
259
257
Ok ( Type {
260
258
corr : match Correctness :: cast_dupif ( self . corr ) {
261
259
Ok ( x) => x,
@@ -267,7 +265,6 @@ impl Type {
267
265
268
266
/// Constructor for the type of the `v:` fragment.
269
267
pub const fn cast_verify ( self ) -> Result < Self , ErrorKind > {
270
- // FIXME need to do manual `?` because ? is not supported in constfns.
271
268
Ok ( Type {
272
269
corr : match Correctness :: cast_verify ( self . corr ) {
273
270
Ok ( x) => x,
@@ -279,7 +276,6 @@ impl Type {
279
276
280
277
/// Constructor for the type of the `j:` fragment.
281
278
pub const fn cast_nonzero ( self ) -> Result < Self , ErrorKind > {
282
- // FIXME need to do manual `?` because ? is not supported in constfns.
283
279
Ok ( Type {
284
280
corr : match Correctness :: cast_nonzero ( self . corr ) {
285
281
Ok ( x) => x,
@@ -291,7 +287,6 @@ impl Type {
291
287
292
288
/// Constructor for the type of the `n:` fragment.
293
289
pub const fn cast_zeronotequal ( self ) -> Result < Self , ErrorKind > {
294
- // FIXME need to do manual `?` because ? is not supported in constfns.
295
290
Ok ( Type {
296
291
corr : match Correctness :: cast_zeronotequal ( self . corr ) {
297
292
Ok ( x) => x,
@@ -303,7 +298,6 @@ impl Type {
303
298
304
299
/// Constructor for the type of the `t:` fragment.
305
300
pub const fn cast_true ( self ) -> Result < Self , ErrorKind > {
306
- // FIXME need to do manual `?` because ? is not supported in constfns.
307
301
Ok ( Type {
308
302
corr : match Correctness :: cast_true ( self . corr ) {
309
303
Ok ( x) => x,
@@ -315,7 +309,6 @@ impl Type {
315
309
316
310
/// Constructor for the type of the `u:` fragment.
317
311
pub const fn cast_unlikely ( self ) -> Result < Self , ErrorKind > {
318
- // FIXME need to do manual `?` because ? is not supported in constfns.
319
312
Ok ( Type {
320
313
corr : match Correctness :: cast_or_i_false ( self . corr ) {
321
314
Ok ( x) => x,
@@ -327,7 +320,6 @@ impl Type {
327
320
328
321
/// Constructor for the type of the `l:` fragment.
329
322
pub const fn cast_likely ( self ) -> Result < Self , ErrorKind > {
330
- // FIXME need to do manual `?` because ? is not supported in constfns.
331
323
Ok ( Type {
332
324
corr : match Correctness :: cast_or_i_false ( self . corr ) {
333
325
Ok ( x) => x,
@@ -339,7 +331,6 @@ impl Type {
339
331
340
332
/// Constructor for the type of the `and_b` fragment.
341
333
pub const fn and_b ( left : Self , right : Self ) -> Result < Self , ErrorKind > {
342
- // FIXME need to do manual `?` because ? is not supported in constfns.
343
334
Ok ( Type {
344
335
corr : match Correctness :: and_b ( left. corr , right. corr ) {
345
336
Ok ( x) => x,
@@ -351,7 +342,6 @@ impl Type {
351
342
352
343
/// Constructor for the type of the `and_v` fragment.
353
344
pub const fn and_v ( left : Self , right : Self ) -> Result < Self , ErrorKind > {
354
- // FIXME need to do manual `?` because ? is not supported in constfns.
355
345
Ok ( Type {
356
346
corr : match Correctness :: and_v ( left. corr , right. corr ) {
357
347
Ok ( x) => x,
@@ -363,7 +353,6 @@ impl Type {
363
353
364
354
/// Constructor for the type of the `or_b` fragment.
365
355
pub const fn or_b ( left : Self , right : Self ) -> Result < Self , ErrorKind > {
366
- // FIXME need to do manual `?` because ? is not supported in constfns.
367
356
Ok ( Type {
368
357
corr : match Correctness :: or_b ( left. corr , right. corr ) {
369
358
Ok ( x) => x,
@@ -375,7 +364,6 @@ impl Type {
375
364
376
365
/// Constructor for the type of the `or_b` fragment.
377
366
pub const fn or_d ( left : Self , right : Self ) -> Result < Self , ErrorKind > {
378
- // FIXME need to do manual `?` because ? is not supported in constfns.
379
367
Ok ( Type {
380
368
corr : match Correctness :: or_d ( left. corr , right. corr ) {
381
369
Ok ( x) => x,
@@ -387,7 +375,6 @@ impl Type {
387
375
388
376
/// Constructor for the type of the `or_c` fragment.
389
377
pub const fn or_c ( left : Self , right : Self ) -> Result < Self , ErrorKind > {
390
- // FIXME need to do manual `?` because ? is not supported in constfns.
391
378
Ok ( Type {
392
379
corr : match Correctness :: or_c ( left. corr , right. corr ) {
393
380
Ok ( x) => x,
@@ -410,7 +397,6 @@ impl Type {
410
397
411
398
/// Constructor for the type of the `and_or` fragment.
412
399
pub const fn and_or ( a : Self , b : Self , c : Self ) -> Result < Self , ErrorKind > {
413
- // FIXME need to do manual `?` because ? is not supported in constfns.
414
400
Ok ( Type {
415
401
corr : match Correctness :: and_or ( a. corr , b. corr , c. corr ) {
416
402
Ok ( x) => x,
0 commit comments