Misc changes

This commit is contained in:
bjorn3 2019-03-11 20:45:59 +01:00
parent b0ecbf14a2
commit 87424cb288
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -16,7 +16,7 @@ index f928d40..6a146f5 100644
#[inline]
pub const fn swap_bytes(self) -> Self {
- intrinsics::bswap(self as $ActualT) as Self
+ 0 // bswap is unsupported by cg_clif
+ 42 // bswap is unsupported by cg_clif
}
}

View File

@ -396,8 +396,8 @@ impl<'a, 'tcx: 'a> CPlace<'tcx> {
dst_layout,
),
CPlace::NoPlace(layout) => {
assert!(layout.size.bytes() == 0);
assert!(from.layout().size.bytes() == 0);
assert_eq!(layout.size.bytes(), 0);
assert_eq!(from.layout().size.bytes(), 0);
return;
}
CPlace::Addr(_, _, _) => bug!("Can't write value to unsized place {:?}", self),