Rustup to rustc 1.42.0-nightly (74c4e6a98 2019-12-27)

This commit is contained in:
bjorn3 2019-12-28 10:57:49 +01:00
parent 7b4fc34d8b
commit 8bf5cd345e

View File

@ -162,7 +162,7 @@ fn trans_const_place<'tcx>(
ecx.copy_op(op, ptr.into())?;
let alloc = ecx
.memory
.get_raw(ptr.to_ref().to_scalar()?.to_ptr()?.alloc_id)?;
.get_raw(ptr.to_ref().to_scalar()?.assert_ptr().alloc_id)?;
Ok(fx.tcx.intern_const_alloc(alloc.clone()))
};
let alloc = result().expect("unable to convert ConstKind to Allocation");