Rustup to rustc 1.30.0-nightly (28bcffead 2018-09-01)

This commit is contained in:
bjorn3 2018-09-02 10:57:29 +02:00
parent 16790d5421
commit 0cfe31403a

View File

@ -246,7 +246,7 @@ fn define_all_allocs<'a, 'tcx: 'a, B: Backend + 'a>(
};
let reloc_offset = {
let endianness = memory.endianness();
let endianness = tcx.data_layout.endian;
let offset = offset.bytes() as usize;
let ptr_size = tcx.data_layout.pointer_size;
let bytes = &alloc.bytes[offset..offset + ptr_size.bytes() as usize];