diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-08-25 11:58:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 11:58:31 -0400 |
| commit | 8ecdefb3db7e854561fd382ba19675c894f40170 (patch) | |
| tree | 39d34d397ea6d3391ff70b6fe90a83a14661504c | |
| parent | ec21d584eee32b276b78c7115391218c799d5936 (diff) | |
| download | rust-8ecdefb3db7e854561fd382ba19675c894f40170.tar.gz rust-8ecdefb3db7e854561fd382ba19675c894f40170.zip | |
Add a doc comment for the new hook
Co-authored-by: Ralf Jung <post@ralfj.de>
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/machine.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/machine.rs b/compiler/rustc_const_eval/src/interpret/machine.rs index ff106fa4b1b..2b8e8bfbdd9 100644 --- a/compiler/rustc_const_eval/src/interpret/machine.rs +++ b/compiler/rustc_const_eval/src/interpret/machine.rs @@ -472,6 +472,9 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized { Ok(StackPopJump::Normal) } + /// Called immediately after actual memory was allocated for a local + /// but before the local's stack frame is updated to point to that memory. + #[inline(always)] fn after_local_allocated( _ecx: &mut InterpCx<'mir, 'tcx, Self>, _frame: usize, |
