about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-08-25 11:58:31 -0400
committerGitHub <noreply@github.com>2023-08-25 11:58:31 -0400
commit8ecdefb3db7e854561fd382ba19675c894f40170 (patch)
tree39d34d397ea6d3391ff70b6fe90a83a14661504c
parentec21d584eee32b276b78c7115391218c799d5936 (diff)
downloadrust-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.rs3
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,