Co-authored-by: lcnr <rust@lcnr.de>
This commit is contained in:
est31 2022-02-21 08:28:20 +01:00 committed by GitHub
parent 5cc292eb1d
commit 413f3f787c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1047,7 +1047,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'mir, 'tcx, M> {
// We need the `dest` ptr for the next operation, so we get it now.
// We already did the source checks and called the hooks so we are good to return early.
let Some((dest_alloc_id, dest_offset, dest)) = dest_parts else {
// Zero-sized *destiantion*.
// Zero-sized *destination*.
return Ok(());
};