Skip to content

Commit

Permalink
Revert "Rollup merge of rust-lang#98582 - oli-obk:unconstrained_opaqu…
Browse files Browse the repository at this point in the history
…e_type, r=estebank"

This reverts commit 6f8fb91, reversing
changes made to 7210e46.
  • Loading branch information
oli-obk committed Jul 20, 2022
1 parent 33b297a commit 22a0a2e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,6 @@ pub(crate) fn codegen_place<'tcx>(
cplace = cplace.place_deref(fx);
}
}
PlaceElem::OpaqueCast(ty) => cplace = cplace.place_opaque_cast(fx, ty),
PlaceElem::Field(field, _ty) => {
cplace = cplace.place_field(fx, field);
}
Expand Down
8 changes: 0 additions & 8 deletions src/value_and_place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,6 @@ impl<'tcx> CPlace<'tcx> {
}
}

pub(crate) fn place_opaque_cast(
self,
fx: &mut FunctionCx<'_, '_, 'tcx>,
ty: Ty<'tcx>,
) -> CPlace<'tcx> {
CPlace { inner: self.inner, layout: fx.layout_of(ty) }
}

pub(crate) fn place_field(
self,
fx: &mut FunctionCx<'_, '_, 'tcx>,
Expand Down

0 comments on commit 22a0a2e

Please sign in to comment.