From d79efc5d005f6643e4a1406931d72a507c702cdc Mon Sep 17 00:00:00 2001 From: mu001999 Date: Thu, 26 Feb 2026 19:29:31 +0800 Subject: [PATCH] Recover feature lang_items for emscripten --- library/panic_unwind/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/panic_unwind/src/lib.rs b/library/panic_unwind/src/lib.rs index 5372c44cedf75..e89d5e60df62a 100644 --- a/library/panic_unwind/src/lib.rs +++ b/library/panic_unwind/src/lib.rs @@ -14,6 +14,7 @@ #![no_std] #![unstable(feature = "panic_unwind", issue = "32837")] #![doc(issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")] +#![cfg_attr(all(target_os = "emscripten", not(emscripten_wasm_eh)), lang_items)] #![feature(cfg_emscripten_wasm_eh)] #![feature(core_intrinsics)] #![feature(panic_unwind)]