Skip to content

Commit 011c9df

Browse files
committed
Fixup some stability annotations and feature directives
1 parent e04182d commit 011c9df

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

crates/core_arch/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
decl_macro
3939
)]
4040
#![cfg_attr(test, feature(test, abi_vectorcall, untagged_unions))]
41+
#![cfg_attr(all(test, target_arch = "wasm32"), feature(wasm_simd))]
4142
#![deny(clippy::missing_inline_in_public_items)]
4243
#![allow(
4344
clippy::inline_always,

crates/core_arch/tests/xcrate-macros.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![feature(stdsimd, wasm_simd)]
1+
#![feature(stdsimd)]
2+
#![cfg_attr(target_arch = "wasm32", feature(wasm_simd))]
23

34
#[test]
45
#[cfg(target_arch = "wasm32")]

examples/hex.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
#![feature(stdsimd, wasm_target_feature)]
1616
#![cfg_attr(test, feature(test))]
17+
#![cfg_attr(target_arch = "wasm32", feature(wasm_simd))]
1718
#![allow(
1819
clippy::result_unwrap_used,
1920
clippy::print_stdout,

0 commit comments

Comments
 (0)