@@ -6,8 +6,9 @@ use base_db::ra_salsa::Cycle;
6
6
use chalk_ir:: { AdtId , FloatTy , IntTy , TyKind , UintTy } ;
7
7
use hir_def:: {
8
8
layout:: {
9
- BackendRepr , FieldsShape , Float , Integer , LayoutCalculator , LayoutCalculatorError , LayoutData ,
10
- Primitive , ReprOptions , Scalar , Size , StructKind , TargetDataLayout , WrappingRange ,
9
+ BackendRepr , FieldsShape , Float , Integer , LayoutCalculator , LayoutCalculatorError ,
10
+ LayoutData , Primitive , ReprOptions , Scalar , Size , StructKind , TargetDataLayout ,
11
+ WrappingRange ,
11
12
} ,
12
13
LocalFieldId , StructId ,
13
14
} ;
@@ -294,11 +295,12 @@ pub fn layout_of_ty_query(
294
295
. checked_mul ( count, dl)
295
296
. ok_or ( LayoutError :: BadCalc ( LayoutCalculatorError :: SizeOverflow ) ) ?;
296
297
297
- let backend_repr = if count != 0 && matches ! ( element. backend_repr, BackendRepr :: Uninhabited ) {
298
- BackendRepr :: Uninhabited
299
- } else {
300
- BackendRepr :: Memory { sized : true }
301
- } ;
298
+ let backend_repr =
299
+ if count != 0 && matches ! ( element. backend_repr, BackendRepr :: Uninhabited ) {
300
+ BackendRepr :: Uninhabited
301
+ } else {
302
+ BackendRepr :: Memory { sized : true }
303
+ } ;
302
304
303
305
let largest_niche = if count != 0 { element. largest_niche } else { None } ;
304
306
0 commit comments