Misc changes
This commit is contained in:
parent
b0ecbf14a2
commit
87424cb288
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user