File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,20 @@ diff --git a/crates/std_detect/src/lib.rs b/crates/std_detect/src/lib.rs
33
33
index 19cc0217..d19128c2 100644
34
34
--- a/library/stdarch/crates/std_detect/src/lib.rs
35
35
+++ b/library/stdarch/crates/std_detect/src/lib.rs
36
- @@ -23,7 +23,7 @@
37
- // Temporary hack: needed to build against toolchains from before the mass feature renaming.
38
- // Remove this as soon as the stdarch submodule is updated on nightly.
39
- #![allow(stable_features)]
36
+ @@ -20,15 +20,8 @@
37
+ #![cfg_attr(test, allow(unused_imports))]
38
+ #![no_std]
39
+ #![allow(internal_features)]
40
+ - // Temporary hack: needed to build against toolchains from before the mass feature renaming.
41
+ - // Remove this as soon as the stdarch submodule is updated on nightly.
42
+ - #![allow(stable_features)]
40
43
- #![cfg_attr(not(feature = "rustc-dep-of-std"), feature(stdsimd))]
41
- + #![cfg_attr(not(feature = "rustc-dep-of-std"), feature(stdarch_internal))]
42
44
#![cfg_attr(
43
- all(
44
- any(target_arch = "x86", target_arch = "x86_64"),
45
+ - all(
46
+ - any(target_arch = "x86", target_arch = "x86_64"),
47
+ - feature = "rustc-dep-of-std"
48
+ - ),
49
+ + any(target_arch = "x86", target_arch = "x86_64"),
50
+ feature(stdarch_x86_has_cpuid)
51
+ )]
52
+
You can’t perform that action at this time.
0 commit comments