We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Ty::new_unit
1 parent 6602133 commit 579d616Copy full SHA for 579d616
src/machine.rs
@@ -380,7 +380,7 @@ impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
380
let mut_raw_ptr = Ty::new_mut_ptr(tcx, tcx.types.unit);
381
let const_raw_ptr = Ty::new_imm_ptr(tcx, tcx.types.unit);
382
Ok(Self {
383
- unit: layout_cx.layout_of(Ty::new_unit(tcx))?,
+ unit: layout_cx.layout_of(tcx.types.unit)?,
384
i8: layout_cx.layout_of(tcx.types.i8)?,
385
i16: layout_cx.layout_of(tcx.types.i16)?,
386
i32: layout_cx.layout_of(tcx.types.i32)?,
0 commit comments