about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-07-20 07:55:58 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-07-20 07:55:58 +0000
commit22a0a2eac27d4c0409b1424ff873d89710bfa746 (patch)
tree87787b4b06fd7d20f9621302590dd0c2f611313f
parent33b297a52543ce7eb7783a9a0b1243e8b50c60f9 (diff)
downloadrust-22a0a2eac27d4c0409b1424ff873d89710bfa746.tar.gz
rust-22a0a2eac27d4c0409b1424ff873d89710bfa746.zip
Revert "Rollup merge of #98582 - oli-obk:unconstrained_opaque_type, r=estebank"
This reverts commit 6f8fb911ad504b77549cf3256a09465621beab9d, reversing
changes made to 7210e46dc69a4b197a313d093fe145722c248b7d.
-rw-r--r--src/base.rs1
-rw-r--r--src/value_and_place.rs8
2 files changed, 0 insertions, 9 deletions
diff --git a/src/base.rs b/src/base.rs
index 54652623d94..63cd4d6de4c 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -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);
             }
diff --git a/src/value_and_place.rs b/src/value_and_place.rs
index 8ff35d2f76d..a68225de58b 100644
--- a/src/value_and_place.rs
+++ b/src/value_and_place.rs
@@ -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>,