Skip to content

Commit 06eaeed

Browse files
author
Lukas Markeffsky
committed
make LayoutCx not generic
1 parent 9b0b076 commit 06eaeed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ pub struct PrimitiveLayouts<'tcx> {
381381
}
382382

383383
impl<'tcx> PrimitiveLayouts<'tcx> {
384-
fn new(layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Result<Self, &'tcx LayoutError<'tcx>> {
384+
fn new(layout_cx: LayoutCx<'tcx>) -> Result<Self, &'tcx LayoutError<'tcx>> {
385385
let tcx = layout_cx.tcx;
386386
let mut_raw_ptr = Ty::new_mut_ptr(tcx, tcx.types.unit);
387387
let const_raw_ptr = Ty::new_imm_ptr(tcx, tcx.types.unit);
@@ -596,7 +596,7 @@ pub struct MiriMachine<'tcx> {
596596
}
597597

598598
impl<'tcx> MiriMachine<'tcx> {
599-
pub(crate) fn new(config: &MiriConfig, layout_cx: LayoutCx<'tcx, TyCtxt<'tcx>>) -> Self {
599+
pub(crate) fn new(config: &MiriConfig, layout_cx: LayoutCx<'tcx>) -> Self {
600600
let tcx = layout_cx.tcx;
601601
let local_crates = helpers::get_local_crates(tcx);
602602
let layouts =

0 commit comments

Comments
 (0)