Skip to content

Commit 8bf5cd3

Browse files
committed
Rustup to rustc 1.42.0-nightly (74c4e6a 2019-12-27)
1 parent 7b4fc34 commit 8bf5cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn trans_const_place<'tcx>(
162162
ecx.copy_op(op, ptr.into())?;
163163
let alloc = ecx
164164
.memory
165-
.get_raw(ptr.to_ref().to_scalar()?.to_ptr()?.alloc_id)?;
165+
.get_raw(ptr.to_ref().to_scalar()?.assert_ptr().alloc_id)?;
166166
Ok(fx.tcx.intern_const_alloc(alloc.clone()))
167167
};
168168
let alloc = result().expect("unable to convert ConstKind to Allocation");

0 commit comments

Comments
 (0)