From 4beb81ae78436ae140490d28cea6cc54e970b9b0 Mon Sep 17 00:00:00 2001 From: Leigh <351529+leighmcculloch@users.noreply.github.com> Date: Tue, 20 Jan 2026 22:58:24 +1000 Subject: [PATCH] allow unreachable_code in wasm error helper --- soroban-sdk/src/env.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/soroban-sdk/src/env.rs b/soroban-sdk/src/env.rs index f48cfaf37..a6a306713 100644 --- a/soroban-sdk/src/env.rs +++ b/soroban-sdk/src/env.rs @@ -1765,6 +1765,7 @@ impl internal::EnvBase for Env { // When targeting wasm we don't even need to do that, just delegate to // the Guest's impl, which calls core::arch::wasm32::unreachable. #[cfg(target_family = "wasm")] + #[allow(unreachable_code)] fn error_from_error_val(&self, e: crate::Error) -> Self::Error { self.env_impl.error_from_error_val(e) }