Skip to content

Commit 46e17b2

Browse files
authored
Merge pull request #33 from RalfJung/stdarch
attempt a different patch for stdarch
2 parents 50a0cc9 + 24ea3a7 commit 46e17b2

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

rust-src.diff

+15-7
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,20 @@ diff --git a/crates/std_detect/src/lib.rs b/crates/std_detect/src/lib.rs
3333
index 19cc0217..d19128c2 100644
3434
--- a/library/stdarch/crates/std_detect/src/lib.rs
3535
+++ 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)]
4043
-#![cfg_attr(not(feature = "rustc-dep-of-std"), feature(stdsimd))]
41-
+#![cfg_attr(not(feature = "rustc-dep-of-std"), feature(stdarch_internal))]
4244
#![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+

0 commit comments

Comments
 (0)