Skip to content
This repository was archived by the owner on Jun 15, 2020. It is now read-only.

Commit 69c0609

Browse files
alexcrichtonHywan
authored andcommitted
feat(wasm) Remove pub/#[no_mangle] decorators on lang items.
2 parents ac5bc77 + c0ed287 commit 69c0609

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

bindings/wasm/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,14 @@ use core::{mem, slice};
3737
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
3838

3939
#[panic_implementation]
40-
#[no_mangle]
41-
pub fn panic(_info: &core::panic::PanicInfo) -> ! {
40+
fn panic(_info: &core::panic::PanicInfo) -> ! {
4241
unsafe {
4342
core::intrinsics::abort();
4443
}
4544
}
4645

4746
#[alloc_error_handler]
48-
#[no_mangle]
49-
pub extern "C" fn oom(_: core::alloc::Layout) -> ! {
47+
fn oom(_: core::alloc::Layout) -> ! {
5048
unsafe {
5149
core::intrinsics::abort();
5250
}

0 commit comments

Comments
 (0)