From 0cfe31403aa656b37911113cb916c042d168c7cc Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sun, 2 Sep 2018 10:57:29 +0200 Subject: [PATCH] Rustup to rustc 1.30.0-nightly (28bcffead 2018-09-01) --- src/constant.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constant.rs b/src/constant.rs index f912f435fcb..4a815080278 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -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];