diff options
| author | bors <bors@rust-lang.org> | 2023-10-16 10:45:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-16 10:45:00 +0000 |
| commit | a00c09e9d80b763fb29206b47b04e1d99c3ace96 (patch) | |
| tree | 6e548279cb7ce545370bb20df367236f457c8950 /compiler/rustc_const_eval/src | |
| parent | 9ace9da2e050ff30f07a30323e5b3b3fcb63cd8f (diff) | |
| parent | 9c417a4ad4d274106b813304a132f90646fa51f2 (diff) | |
| download | rust-a00c09e9d80b763fb29206b47b04e1d99c3ace96.tar.gz rust-a00c09e9d80b763fb29206b47b04e1d99c3ace96.zip | |
Auto merge of #116724 - RalfJung:alloc-bytes, r=oli-obk
interpret: clean up AllocBytes Fixes https://github.com/rust-lang/miri/issues/2836 Nothing has moved here in half a year, so let's just remove these unused stubs -- they need a proper re-design anyway. r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/memory.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs index edd8c540226..1b61005e1e5 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -538,17 +538,6 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { ) } - /// Get the base address for the bytes in an `Allocation` specified by the - /// `AllocID` passed in; error if no such allocation exists. - /// - /// 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 u8> { - let alloc = self.get_alloc_raw(id)?; - Ok(alloc.base_addr()) - } - /// Gives raw access to the `Allocation`, without bounds or alignment checks. /// The caller is responsible for calling the access hooks! /// |
