From 3ec1febbf570b555c35db8228b27c4e300d11e0b Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 17 Apr 2022 19:27:41 -0400 Subject: add caution to some comments --- compiler/rustc_const_eval/src/interpret/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_const_eval') diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs index 32b739f9335..9ae50d0df80 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -1058,7 +1058,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { // operating system this can avoid physically allocating the page. dest_alloc .write_uninit(&tcx, dest_range) - .map_err(|e| e.to_interp_error(dest_alloc_id))?; // `Size` multiplication + .map_err(|e| e.to_interp_error(dest_alloc_id))?; // We can forget about the relocations, this is all not initialized anyway. return Ok(()); } -- cgit 1.4.1-3-g733a5