Skip to content

Commit 87424cb

Browse files
committed
Misc changes
1 parent b0ecbf1 commit 87424cb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ fi
2020

2121
export RUSTFLAGS='-Zalways-encode-mir -Cpanic=abort -Cdebuginfo=2 -Zcodegen-backend='$(pwd)'/target/'$channel'/librustc_codegen_cranelift.'$dylib_ext
2222
RUSTC="rustc $RUSTFLAGS -L crate=target/out --out-dir target/out"
23+
export RUST_LOG=warn # display metadata load errors

patches/0013-Patch-away-bswap-usage.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ index f928d40..6a146f5 100644
1616
#[inline]
1717
pub const fn swap_bytes(self) -> Self {
1818
- intrinsics::bswap(self as $ActualT) as Self
19-
+ 0 // bswap is unsupported by cg_clif
19+
+ 42 // bswap is unsupported by cg_clif
2020
}
2121
}
2222

src/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
396396
dst_layout,
397397
),
398398
CPlace::NoPlace(layout) => {
399-
assert!(layout.size.bytes() == 0);
400-
assert!(from.layout().size.bytes() == 0);
399+
assert_eq!(layout.size.bytes(), 0);
400+
assert_eq!(from.layout().size.bytes(), 0);
401401
return;
402402
}
403403
CPlace::Addr(_, _, _) => bug!("Can't write value to unsized place {:?}", self),

0 commit comments

Comments
 (0)