From d1bb356044b73cfa836e1e1f92ecb9f70055f365 Mon Sep 17 00:00:00 2001 From: wangxin Date: Tue, 23 Jun 2026 11:15:30 +0800 Subject: [PATCH] feat: enable loongarch64 LSX SIMD feature gate The loongarch64 LSX SIMD code already exists in src/binary16/arch/loongarch64.rs and is properly gated behind cfg(target_arch = "loongarch64"), but building on loongarch64 with nightly Rust fails because the crate root is missing: #![feature(stdarch_loongarch)] Without this, core::arch::loongarch64 intrinsics raise E0658 even on nightly, since stdarch_loongarch is still an unstable feature (Rust issue #117427). --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index fc603ac..52ddd4b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +#![feature(stdarch_loongarch)] //! A crate that provides support for half-precision 16-bit floating point //! types. //!