fmt
This commit is contained in:
parent
89b9b6793c
commit
5039f8b1e9
1 changed files with 2 additions and 4 deletions
|
@ -372,10 +372,8 @@ pub struct PrimitiveLayouts<'tcx> {
|
|||
impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
|
||||
fn new(layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Result<Self, &'tcx LayoutError<'tcx>> {
|
||||
let tcx = layout_cx.tcx;
|
||||
let mut_raw_ptr =
|
||||
Ty::new_mut_ptr(tcx, tcx.types.unit);
|
||||
let const_raw_ptr =
|
||||
Ty::new_imm_ptr(tcx, tcx.types.unit);
|
||||
let mut_raw_ptr = Ty::new_mut_ptr(tcx, tcx.types.unit);
|
||||
let const_raw_ptr = Ty::new_imm_ptr(tcx, tcx.types.unit);
|
||||
Ok(Self {
|
||||
unit: layout_cx.layout_of(Ty::new_unit(tcx))?,
|
||||
i8: layout_cx.layout_of(tcx.types.i8)?,
|
||||
|
|
Loading…
Add table
Reference in a new issue