Skip to content

Commit eafcb72

Browse files
committed
Allow ffi_unwind_calls for arch::wasm32::throw
1 parent ed11a39 commit eafcb72

File tree

1 file changed

+1
-0
lines changed
  • library/stdarch/crates/core_arch/src/wasm32

1 file changed

+1
-0
lines changed

library/stdarch/crates/core_arch/src/wasm32/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ unsafe extern "C-unwind" {
191191
// #[cfg_attr(test, assert_instr(throw, TAG = 0, ptr = core::ptr::null_mut()))]
192192
#[inline]
193193
#[unstable(feature = "wasm_exception_handling_intrinsics", issue = "122465")]
194+
#[allow(ffi_unwind_calls)]
194195
pub unsafe fn throw<const TAG: i32>(ptr: *mut u8) -> ! {
195196
static_assert!(TAG == 0); // LLVM only supports tag 0 == C++ right now.
196197
wasm_throw(TAG, ptr)

0 commit comments

Comments
 (0)