@@ -6,8 +6,9 @@ use base_db::ra_salsa::Cycle;
66use chalk_ir:: { AdtId , FloatTy , IntTy , TyKind , UintTy } ;
77use hir_def:: {
88 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 ,
1112 } ,
1213 LocalFieldId , StructId ,
1314} ;
@@ -294,11 +295,12 @@ pub fn layout_of_ty_query(
294295 . checked_mul ( count, dl)
295296 . ok_or ( LayoutError :: BadCalc ( LayoutCalculatorError :: SizeOverflow ) ) ?;
296297
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+ } ;
302304
303305 let largest_niche = if count != 0 { element. largest_niche } else { None } ;
304306
0 commit comments