@@ -325,8 +325,8 @@ fn layout_of_uncached<'tcx>(
325
325
326
326
// Extract the number of elements from the layout of the array field:
327
327
let FieldsShape :: Array { count, .. } = cx. layout_of ( f0_ty) ?. layout . fields ( ) else {
328
- return Err ( LayoutError :: Unknown ( ty) ) ;
329
- } ;
328
+ return Err ( LayoutError :: Unknown ( ty) ) ;
329
+ } ;
330
330
331
331
( * e_ty, * count, true )
332
332
} else {
@@ -351,14 +351,14 @@ fn layout_of_uncached<'tcx>(
351
351
// Compute the ABI of the element type:
352
352
let e_ly = cx. layout_of ( e_ty) ?;
353
353
let Abi :: Scalar ( e_abi) = e_ly. abi else {
354
- // This error isn't caught in typeck, e.g., if
355
- // the element type of the vector is generic.
356
- tcx. sess . fatal ( & format ! (
357
- "monomorphising SIMD type `{}` with a non-primitive-scalar \
358
- (integer/float/pointer) element type `{}`",
359
- ty, e_ty
360
- ) )
361
- } ;
354
+ // This error isn't caught in typeck, e.g., if
355
+ // the element type of the vector is generic.
356
+ tcx. sess . fatal ( & format ! (
357
+ "monomorphising SIMD type `{}` with a non-primitive-scalar \
358
+ (integer/float/pointer) element type `{}`",
359
+ ty, e_ty
360
+ ) )
361
+ } ;
362
362
363
363
// Compute the size and alignment of the vector:
364
364
let size = e_ly. size . checked_mul ( e_len, dl) . ok_or ( LayoutError :: SizeOverflow ( ty) ) ?;
@@ -597,8 +597,8 @@ fn generator_layout<'tcx>(
597
597
let subst_field = |ty : Ty < ' tcx > | EarlyBinder ( ty) . subst ( tcx, substs) ;
598
598
599
599
let Some ( info) = tcx. generator_layout ( def_id) else {
600
- return Err ( LayoutError :: Unknown ( ty) ) ;
601
- } ;
600
+ return Err ( LayoutError :: Unknown ( ty) ) ;
601
+ } ;
602
602
let ( ineligible_locals, assignments) = generator_saved_local_eligibility ( & info) ;
603
603
604
604
// Build a prefix layout, including "promoting" all ineligible
@@ -701,8 +701,8 @@ fn generator_layout<'tcx>(
701
701
variant. variants = Variants :: Single { index } ;
702
702
703
703
let FieldsShape :: Arbitrary { offsets, memory_index } = variant. fields else {
704
- bug ! ( ) ;
705
- } ;
704
+ bug ! ( ) ;
705
+ } ;
706
706
707
707
// Now, stitch the promoted and variant-only fields back together in
708
708
// the order they are mentioned by our GeneratorLayout.
0 commit comments