Skip to content

Commit 528f100

Browse files
committed
Disable Atomic{U128,I128}::from_mut on x86_64.
The alignment doesn't match on x86_64.
1 parent 15b660f commit 528f100

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/sync/atomic.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,7 @@ atomic_int! {
21142114
unstable(feature = "integer_atomics", issue = "32976"),
21152115
rustc_const_stable(feature = "const_integer_atomics", since = "1.34.0"),
21162116
unstable(feature = "integer_atomics", issue = "32976"),
2117+
from_mut: cfg(not(target_arch = "x86_64")),
21172118
"i128", "../../../std/primitive.i128.html",
21182119
"#![feature(integer_atomics)]\n\n",
21192120
atomic_min, atomic_max,
@@ -2132,6 +2133,7 @@ atomic_int! {
21322133
unstable(feature = "integer_atomics", issue = "32976"),
21332134
rustc_const_stable(feature = "const_integer_atomics", since = "1.34.0"),
21342135
unstable(feature = "integer_atomics", issue = "32976"),
2136+
from_mut: cfg(not(target_arch = "x86_64")),
21352137
"u128", "../../../std/primitive.u128.html",
21362138
"#![feature(integer_atomics)]\n\n",
21372139
atomic_umin, atomic_umax,

0 commit comments

Comments
 (0)