diff options
| author | Nia Espera <a5b6@riseup.net> | 2025-07-08 10:47:01 +0200 | 
|---|---|---|
| committer | Nia Espera <a5b6@riseup.net> | 2025-07-10 16:33:31 +0200 | 
| commit | 8d0e0c6d6fae36283c11535dcb88b52baf286fc5 (patch) | |
| tree | a075568015c356f5b5f9c171cceb8183f61364b9 /compiler/rustc_const_eval | |
| parent | 2783fc43fd13a669f314742890acd64200ad0bbf (diff) | |
| download | rust-8d0e0c6d6fae36283c11535dcb88b52baf286fc5.tar.gz rust-8d0e0c6d6fae36283c11535dcb88b52baf286fc5.zip | |
interpret/allocation: expose init + write_wildcards on a range
Diffstat (limited to 'compiler/rustc_const_eval')
| -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 524023b8104..6053534266f 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -1472,7 +1472,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(()); } | 
