Skip to content

Commit f1f40ac

Browse files
committed
Fix alloc_base_addr type
1 parent b2455dc commit f1f40ac

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
533533
/// It is up to the caller to take sufficient care when using this address:
534534
/// there could be provenance or uninit memory in there, and other memory
535535
/// accesses could invalidate the exposed pointer.
536-
pub fn alloc_base_addr(&self, id: AllocId) -> InterpResult<'tcx, *const ()> {
536+
pub fn alloc_base_addr(&self, id: AllocId) -> InterpResult<'tcx, *const u8> {
537537
let alloc = self.get_alloc_raw(id)?;
538538
Ok(alloc.base_addr())
539539
}

0 commit comments

Comments
 (0)