Skip to content

Commit 8ecdefb

Browse files
saethlinRalfJung
andauthored
Add a doc comment for the new hook
Co-authored-by: Ralf Jung <[email protected]>
1 parent ec21d58 commit 8ecdefb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_const_eval/src/interpret/machine.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
472472
Ok(StackPopJump::Normal)
473473
}
474474

475+
/// Called immediately after actual memory was allocated for a local
476+
/// but before the local's stack frame is updated to point to that memory.
477+
#[inline(always)]
475478
fn after_local_allocated(
476479
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
477480
_frame: usize,

0 commit comments

Comments
 (0)