Skip to content

Commit d2b8406

Browse files
committed
Remove unused trap_unimplemented_ret_value
1 parent 8dc71a4 commit d2b8406

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/trap.rs

-11
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,3 @@ pub(crate) fn trap_unimplemented(fx: &mut FunctionCx<'_, '_, impl Module>, msg:
6868
fx.bcx.ins().trapnz(true_, TrapCode::User(!0));
6969
}
7070

71-
/// Like `trap_unimplemented` but returns a fake value of the specified type.
72-
///
73-
/// Trap code: user65535
74-
pub(crate) fn trap_unimplemented_ret_value<'tcx>(
75-
fx: &mut FunctionCx<'_, 'tcx, impl Module>,
76-
dest_layout: TyAndLayout<'tcx>,
77-
msg: impl AsRef<str>,
78-
) -> CValue<'tcx> {
79-
trap_unimplemented(fx, msg);
80-
CValue::by_ref(Pointer::const_addr(fx, 0), dest_layout)
81-
}

0 commit comments

Comments
 (0)