1 From da996dae0b95f986de46a916aca00e03257ba4f9 Mon Sep 17 00:00:00 2001
2 From: bjorn3 <bjorn3@users.noreply.github.com>
3 Date: Wed, 30 Jan 2019 14:51:57 +0100
4 Subject: [PATCH] Patch away bswap usage
7 src/libcore/num/mod.rs | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
11 index f928d40..6a146f5 100644
12 --- a/src/libcore/num/mod.rs
13 +++ b/src/libcore/num/mod.rs
14 @@ -2303,7 +2303,7 @@ assert_eq!(m, ", $swapped, ");
15 #[stable(feature = "rust1", since = "1.0.0")]
17 pub const fn swap_bytes(self) -> Self {
18 - intrinsics::bswap(self as $ActualT) as Self
19 + 42 // bswap is unsupported by cg_clif