]> git.lizzy.rs Git - rust.git/blobdiff - src/trap.rs
Rustup to rustc 1.42.0-nightly (3ebcfa145 2020-01-12)
[rust.git] / src / trap.rs
index e297b27debb3dd74ba2cb2326cd463ce9f2f5bf6..316a26781dab49b55936a02ea9ddab31d460eaad 100644 (file)
@@ -93,15 +93,3 @@ pub fn trap_unreachable_ret_value<'tcx>(
     trap_unimplemented(fx, msg);
     CValue::by_ref(Pointer::const_addr(fx, 0), dest_layout)
 }
-
-/// Like `trap_unreachable` but returns a fake place for the specified type.
-///
-/// Trap code: user65535
-pub fn trap_unreachable_ret_place<'tcx>(
-    fx: &mut FunctionCx<'_, 'tcx, impl cranelift_module::Backend>,
-    dest_layout: TyLayout<'tcx>,
-    msg: impl AsRef<str>,
-) -> CPlace<'tcx> {
-    trap_unimplemented(fx, msg);
-    CPlace::for_ptr(Pointer::const_addr(fx, 0), dest_layout)
-}