Feature gate: #![feature(wasm_exception_handling_intrinsics)]
This is a tracking issue for wasm exception-handling architecture intrinsics; currently, only the throw instruction is implemented as a platform intrinsic.
Public API
// core::arch::wasm32
pub unsafe fn throw<const TAG: i32>(ptr: *mut u8) -> !;
Steps / History
Unresolved Questions
- Needs better support from LLVM before merging. At the moment, LLVM only accepts a tag value of
0, signifying a C++ exception. Ideally one would be able to somehow declare a tag in a similar way to a static, and pass that as the TAG to the intrinsic.
Feature gate:
#![feature(wasm_exception_handling_intrinsics)]This is a tracking issue for wasm exception-handling architecture intrinsics; currently, only the
throwinstruction is implemented as a platform intrinsic.Public API
Steps / History
Unresolved Questions
0, signifying a C++ exception. Ideally one would be able to somehow declare a tag in a similar way to astatic, and pass that as the TAG to the intrinsic.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩