From 64e789f2e7237ab9f144c087b59f37afb20f340a Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sun, 8 Dec 2024 08:52:10 +0100 Subject: [PATCH] Fix enabling the same unstable feature twice --- src/lib.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 73a6147773f..b4e5a6a9b1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,14 +6,17 @@ //! interface. #![no_std] +#![cfg_attr(wasm_bindgen_unstable_test_coverage, feature(coverage_attribute))] #![cfg_attr( - wasm_bindgen_unstable_test_coverage, - feature(coverage_attribute, allow_internal_unstable), - allow(internal_features) + all(not(feature = "std"), target_feature = "atomics"), + feature(thread_local) )] #![cfg_attr( - all(not(feature = "std"), target_feature = "atomics"), - feature(thread_local, allow_internal_unstable), + any( + all(not(feature = "std"), target_feature = "atomics"), + wasm_bindgen_unstable_test_coverage + ), + feature(allow_internal_unstable), allow(internal_features) )] #![allow(coherence_leak_check)]