@@ -19,7 +19,7 @@ fn uncached_llvm_type<'a, 'tcx>(
19
19
cx : & CodegenCx < ' a , ' tcx > ,
20
20
layout : TyAndLayout < ' tcx > ,
21
21
defer : & mut Option < ( & ' a Type , TyAndLayout < ' tcx > ) > ,
22
- field_remapping : & mut Option < Box < SmallVec < [ u32 ; 4 ] > > > ,
22
+ field_remapping : & mut Option < SmallVec < [ u32 ; 4 ] > > ,
23
23
) -> & ' a Type {
24
24
match layout. abi {
25
25
Abi :: Scalar ( _) => bug ! ( "handled elsewhere" ) ,
@@ -94,7 +94,7 @@ fn uncached_llvm_type<'a, 'tcx>(
94
94
fn struct_llfields < ' a , ' tcx > (
95
95
cx : & CodegenCx < ' a , ' tcx > ,
96
96
layout : TyAndLayout < ' tcx > ,
97
- ) -> ( Vec < & ' a Type > , bool , Option < Box < SmallVec < [ u32 ; 4 ] > > > ) {
97
+ ) -> ( Vec < & ' a Type > , bool , Option < SmallVec < [ u32 ; 4 ] > > ) {
98
98
debug ! ( "struct_llfields: {:#?}" , layout) ;
99
99
let field_count = layout. fields . count ( ) ;
100
100
@@ -150,7 +150,7 @@ fn struct_llfields<'a, 'tcx>(
150
150
} else {
151
151
debug ! ( "struct_llfields: offset: {:?} stride: {:?}" , offset, layout. size) ;
152
152
}
153
- let field_remapping = if padding_used { Some ( Box :: new ( field_remapping) ) } else { None } ;
153
+ let field_remapping = if padding_used { Some ( field_remapping) } else { None } ;
154
154
( result, packed, field_remapping)
155
155
}
156
156
0 commit comments