about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret
diff options
context:
space:
mode:
authorRune Tynan <runetynan@gmail.com>2023-02-13 23:19:34 -0500
committerRune Tynan <runetynan@gmail.com>2023-02-20 13:47:12 -0500
commitf1f40ac05c9d23b6a03dcd1d233f28f4794c0f07 (patch)
treeb9fafcebe2fc42d5b7311df476483eca28c92316 /compiler/rustc_const_eval/src/interpret
parentb2455dc91ce7d43ea883ea5d2ec8adb6e90fc4d4 (diff)
downloadrust-f1f40ac05c9d23b6a03dcd1d233f28f4794c0f07.tar.gz
rust-f1f40ac05c9d23b6a03dcd1d233f28f4794c0f07.zip
Fix alloc_base_addr type
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
-rw-r--r--compiler/rustc_const_eval/src/interpret/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs
index a817211e745..ead4ee7b5f7 100644
--- a/compiler/rustc_const_eval/src/interpret/memory.rs
+++ b/compiler/rustc_const_eval/src/interpret/memory.rs
@@ -533,7 +533,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
     /// It is up to the caller to take sufficient care when using this address:
     /// there could be provenance or uninit memory in there, and other memory
     /// accesses could invalidate the exposed pointer.
-    pub fn alloc_base_addr(&self, id: AllocId) -> InterpResult<'tcx, *const ()> {
+    pub fn alloc_base_addr(&self, id: AllocId) -> InterpResult<'tcx, *const u8> {
         let alloc = self.get_alloc_raw(id)?;
         Ok(alloc.base_addr())
     }