Skip to content

Commit 9230b92

Browse files
committed
Auto merge of #2128 - saethlin:fix-creation-range, r=RalfJung
Pass the correct size to the AllocRange for log_creation Fixes #2127 I guess all I needed was a bit of sleep and reassurance that this diagnostic is the wrong part of that situation.
2 parents c5f1cdb + ada864f commit 9230b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stacked_borrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
731731
alloc_history.log_creation(
732732
Some(orig_tag),
733733
new_tag,
734-
alloc_range(base_offset, base_offset + size),
734+
alloc_range(base_offset, size),
735735
&this.machine.threads,
736736
);
737737
if protect {

0 commit comments

Comments
 (0)