I am trying to implement panic handling with no_std, targeting wasm. I have the following implementation:
#![no_std]
#[panic_handler]
fn handle_panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}
I see the following linting error in my IDE for the handle_panic function:
E0152
found duplicate lang item panic_impl
the lang item is first defined in crate std (which test depends on)...
I don't have any crate called test. My build .cargo/config.toml look like the following:
[build]
target = "wasm32-unknown-unknown"
I have tried setting rust-analyzer properties in my zed settings (cargo.target = "wasm32-unknwon-unknown, and checkOnSave.targets = false, to no avail.)