Skip to content

Commit f0a4b09

Browse files
committed
Fix std_detect not being an unstable crate
More fallout from rust-lang#1486
1 parent 10b0fcd commit f0a4b09

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

crates/core_arch/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
inline_const,
3636
generic_arg_infer
3737
)]
38-
#![cfg_attr(test, feature(test, abi_vectorcall))]
38+
#![cfg_attr(test, feature(test, abi_vectorcall, stdarch_internal))]
3939
#![deny(clippy::missing_inline_in_public_items)]
4040
#![allow(
4141
clippy::identity_op,

crates/std_detect/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! * `powerpc64`: [`is_powerpc64_feature_detected`]
1414
//! * `loongarch`: [`is_loongarch_feature_detected`]
1515
16-
#![stable(feature = "stdsimd", since = "1.27.0")]
16+
#![unstable(feature = "stdarch_internal", issue = "none")]
1717
#![feature(staged_api, doc_cfg, allow_internal_unstable)]
1818
#![deny(rust_2018_idioms)]
1919
#![allow(clippy::shadow_reuse)]
@@ -42,5 +42,5 @@ extern crate std;
4242
extern crate alloc;
4343

4444
#[doc(hidden)]
45-
#[stable(feature = "stdsimd", since = "1.27.0")]
45+
#[unstable(feature = "stdarch_internal", issue = "none")]
4646
pub mod detect;

crates/std_detect/tests/macro_trailing_commas.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(internal_features)]
2+
#![feature(stdarch_internal)]
13
#![cfg_attr(target_arch = "arm", feature(stdarch_arm_feature_detection))]
24
#![cfg_attr(target_arch = "powerpc", feature(stdarch_powerpc_feature_detection))]
35
#![cfg_attr(target_arch = "powerpc64", feature(stdarch_powerpc_feature_detection))]

crates/std_detect/tests/x86-specific.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#![cfg(any(target_arch = "x86", target_arch = "x86_64"))]
2+
#![allow(internal_features)]
3+
#![feature(stdarch_internal)]
24

35
extern crate cupid;
46
#[macro_use]

0 commit comments

Comments
 (0)