Skip to content

Commit afea96e

Browse files
authored
Fix enabling the same unstable feature twice (#4338)
1 parent 5b38cb1 commit afea96e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/lib.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
//! interface.
77
88
#![no_std]
9+
#![cfg_attr(wasm_bindgen_unstable_test_coverage, feature(coverage_attribute))]
910
#![cfg_attr(
10-
wasm_bindgen_unstable_test_coverage,
11-
feature(coverage_attribute, allow_internal_unstable),
12-
allow(internal_features)
11+
all(not(feature = "std"), target_feature = "atomics"),
12+
feature(thread_local)
1313
)]
1414
#![cfg_attr(
15-
all(not(feature = "std"), target_feature = "atomics"),
16-
feature(thread_local, allow_internal_unstable),
15+
any(
16+
all(not(feature = "std"), target_feature = "atomics"),
17+
wasm_bindgen_unstable_test_coverage
18+
),
19+
feature(allow_internal_unstable),
1720
allow(internal_features)
1821
)]
1922
#![allow(coherence_leak_check)]

0 commit comments

Comments
 (0)