Skip to content

Commit c22edcb

Browse files
committed
fix incorrectly set cfg flag
1 parent c18f2cc commit c22edcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/rs/bundle/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn panic(_info: &PanicInfo) -> ! {
3131
#[lang = "eh_personality"]
3232
extern "C" fn eh_personality() {}
3333

34-
#[cfg(all(not(target_family = "wasm"), not(feature = "test")))]
34+
#[cfg(target_family = "wasm")]
3535
#[no_mangle]
3636
pub fn __rust_alloc_error_handler(_: Layout) -> ! {
3737
core::intrinsics::abort()

0 commit comments

Comments
 (0)