diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-13 15:15:58 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-13 15:15:58 +0200 | 
| commit | 762b3143fca8bc76d70eef15581f73315af77ef8 (patch) | |
| tree | 522aa3f0a4dbd4f20710a2bc130fbcb85d241bb3 /compiler/rustc_const_eval/src/interpret/memory.rs | |
| parent | 061bd28ceeebf03cb779b10ad1966ec868b1f153 (diff) | |
| parent | 8d0e0c6d6fae36283c11535dcb88b52baf286fc5 (diff) | |
| download | rust-762b3143fca8bc76d70eef15581f73315af77ef8.tar.gz rust-762b3143fca8bc76d70eef15581f73315af77ef8.zip | |
Rollup merge of #143634 - nia-e:init-and-wildcards, r=RalfJung
interpret/allocation: expose init + write_wildcards on a range Part of https://github.com/rust-lang/miri/pull/4456, so that we can mark down when a foreign access to our memory happened. Should this also move `prepare_for_native_access()` itself into Miri, given that everything there can be implemented on Miri's side? r? `````@RalfJung`````
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/memory.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/memory.rs | 2 | 
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 bb301600135..6414821e21d 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -1498,7 +1498,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { dest_alloc .write_uninit(&tcx, dest_range) .map_err(|e| e.to_interp_error(dest_alloc_id))?; - // We can forget about the provenance, this is all not initialized anyway. + // `write_uninit` also resets the provenance, so we are done. return interp_ok(()); } | 
