Skip to content

Commit 80a4a8d

Browse files
committed
Fixup some stability annotations and feature directives
1 parent e04182d commit 80a4a8d

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

crates/core_arch/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
no_core,
1818
rustc_attrs,
1919
stdsimd,
20+
wasm_simd,
2021
staged_api,
2122
doc_cfg,
2223
mmx_target_feature,

crates/core_arch/tests/xcrate-macros.rs

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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)