about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-05-28 16:46:10 +0000
committerGitHub <noreply@github.com>2025-05-28 16:46:10 +0000
commit5a38c32c6d8ca6f3ac17c153e2f7acea5e190e71 (patch)
treee382c96b7b7db06790c463916445f51275cc6c0d
parent0fdc38eefe9216140f620a6fb5036fc02b1828f6 (diff)
parent6b8a92201e02b2ddafb4f7915e4146241758ffa8 (diff)
downloadrust-5a38c32c6d8ca6f3ac17c153e2f7acea5e190e71.tar.gz
rust-5a38c32c6d8ca6f3ac17c153e2f7acea5e190e71.zip
Merge pull request #4354 from RalfJung/before_stack_pop
fix comment in before_stack_pop
-rw-r--r--src/tools/miri/src/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs
index bdf0d012df3..d88fcf1a41f 100644
--- a/src/tools/miri/src/machine.rs
+++ b/src/tools/miri/src/machine.rs
@@ -1637,7 +1637,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
     fn before_stack_pop(ecx: &mut InterpCx<'tcx, Self>) -> InterpResult<'tcx> {
         let frame = ecx.frame();
         // We want this *before* the return value copy, because the return place itself is protected
-        // until we do `end_call` here.
+        // until we do `on_stack_pop` here, and we need to un-protect it to copy the return value.
         if ecx.machine.borrow_tracker.is_some() {
             ecx.on_stack_pop(frame)?;
         }