diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-22 12:44:53 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-10-22 12:44:59 +0200 |
| commit | d2b8406c200430fded9a981d46e08e415daa850a (patch) | |
| tree | 0ea9c0a6534b8a263968374ab188f90b5abbd166 | |
| parent | 8dc71a419e2db70daa8cb8c5e553bfb4376c4f6b (diff) | |
| download | rust-d2b8406c200430fded9a981d46e08e415daa850a.tar.gz rust-d2b8406c200430fded9a981d46e08e415daa850a.zip | |
Remove unused trap_unimplemented_ret_value
| -rw-r--r-- | src/trap.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/trap.rs b/src/trap.rs index 67495c74148..37dca77bdbd 100644 --- a/src/trap.rs +++ b/src/trap.rs @@ -68,14 +68,3 @@ pub(crate) fn trap_unimplemented(fx: &mut FunctionCx<'_, '_, impl Module>, msg: fx.bcx.ins().trapnz(true_, TrapCode::User(!0)); } -/// Like `trap_unimplemented` but returns a fake value of the specified type. -/// -/// Trap code: user65535 -pub(crate) fn trap_unimplemented_ret_value<'tcx>( - fx: &mut FunctionCx<'_, 'tcx, impl Module>, - dest_layout: TyAndLayout<'tcx>, - msg: impl AsRef<str>, -) -> CValue<'tcx> { - trap_unimplemented(fx, msg); - CValue::by_ref(Pointer::const_addr(fx, 0), dest_layout) -} |
