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.
1 parent b233b0f commit 4ee553eCopy full SHA for 4ee553e
src/machine.rs
@@ -372,10 +372,8 @@ pub struct PrimitiveLayouts<'tcx> {
372
impl<'mir, 'tcx: 'mir> PrimitiveLayouts<'tcx> {
373
fn new(layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Result<Self, &'tcx LayoutError<'tcx>> {
374
let tcx = layout_cx.tcx;
375
- let mut_raw_ptr =
376
- Ty::new_mut_ptr(tcx, tcx.types.unit);
377
- let const_raw_ptr =
378
- 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);
379
Ok(Self {
380
unit: layout_cx.layout_of(Ty::new_unit(tcx))?,
381
i8: layout_cx.layout_of(tcx.types.i8)?,
0 commit comments