]> git.lizzy.rs Git - rust.git/blob - patches/0013-Patch-away-bswap-usage.patch
Rustup to rustc 1.35.0-nightly (acd8dd6a5 2019-04-05)
[rust.git] / patches / 0013-Patch-away-bswap-usage.patch
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
5
6 ---
7  src/libcore/num/mod.rs | 2 +-
8  1 file changed, 1 insertion(+), 1 deletion(-)
9
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")]
16              #[inline]
17              pub const fn swap_bytes(self) -> Self {
18 -                intrinsics::bswap(self as $ActualT) as Self
19 +                42 // bswap is unsupported by cg_clif
20              }
21          }
22  
23 -- 
24 2.11.0
25