diff options
| author | Ralf Jung <post@ralfj.de> | 2022-04-17 19:27:41 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-04-17 19:32:13 -0400 |
| commit | 3ec1febbf570b555c35db8228b27c4e300d11e0b (patch) | |
| tree | 14bb5c6a0d76cc76101818461662a47f7c7ad72d /compiler/rustc_const_eval/src/interpret | |
| parent | 85ee04c44a1d4ffc2f2e3bb0c217908ce4062a18 (diff) | |
| download | rust-3ec1febbf570b555c35db8228b27c4e300d11e0b.tar.gz rust-3ec1febbf570b555c35db8228b27c4e300d11e0b.zip | |
add caution to some comments
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -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 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(()); } |
