@@ -178,9 +178,11 @@ pub struct AllocExtra {
178
178
pub struct PrimitiveLayouts < ' tcx > {
179
179
pub unit : TyAndLayout < ' tcx > ,
180
180
pub i8 : TyAndLayout < ' tcx > ,
181
+ pub i16 : TyAndLayout < ' tcx > ,
181
182
pub i32 : TyAndLayout < ' tcx > ,
182
183
pub isize : TyAndLayout < ' tcx > ,
183
184
pub u8 : TyAndLayout < ' tcx > ,
185
+ pub u16 : TyAndLayout < ' tcx > ,
184
186
pub u32 : TyAndLayout < ' tcx > ,
185
187
pub usize : TyAndLayout < ' tcx > ,
186
188
pub bool : TyAndLayout < ' tcx > ,
@@ -194,9 +196,11 @@ impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
194
196
Ok ( Self {
195
197
unit : layout_cx. layout_of ( tcx. mk_unit ( ) ) ?,
196
198
i8 : layout_cx. layout_of ( tcx. types . i8 ) ?,
199
+ i16 : layout_cx. layout_of ( tcx. types . i16 ) ?,
197
200
i32 : layout_cx. layout_of ( tcx. types . i32 ) ?,
198
201
isize : layout_cx. layout_of ( tcx. types . isize ) ?,
199
202
u8 : layout_cx. layout_of ( tcx. types . u8 ) ?,
203
+ u16 : layout_cx. layout_of ( tcx. types . u16 ) ?,
200
204
u32 : layout_cx. layout_of ( tcx. types . u32 ) ?,
201
205
usize : layout_cx. layout_of ( tcx. types . usize ) ?,
202
206
bool : layout_cx. layout_of ( tcx. types . bool ) ?,
0 commit comments