Skip to content

Commit 9f588bc

Browse files
authored
Avoid feature(asm_experimental_arch) on arches that don't need it. (#1613)
Per rust-lang/rust#93335, inline asm is stablized on powerpc and s390x, so avoid using `feature(asm_experimental_arch)` on those architectures.
1 parent 05050e4 commit 9f588bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,15 @@
114114
any(feature = "rustc-dep-of-std", core_intrinsics),
115115
feature(core_intrinsics)
116116
)]
117-
#![cfg_attr(asm_experimental_arch, feature(asm_experimental_arch))]
117+
#![cfg_attr(
118+
all(
119+
asm_experimental_arch,
120+
not(target_arch = "s390x"),
121+
not(target_arch = "powerpc"),
122+
not(target_arch = "powerpc64")
123+
),
124+
feature(asm_experimental_arch)
125+
)]
118126
#![cfg_attr(not(feature = "all-apis"), allow(dead_code))]
119127
// It is common in Linux and libc APIs for types to vary between platforms.
120128
#![allow(clippy::unnecessary_cast)]

0 commit comments

Comments
 (0)