Remove box_alloc from Machine trait.

This commit is contained in:
Gary Guo 2021-10-20 19:32:54 +01:00
parent 1b7f5a3818
commit 037e189783
4 changed files with 1 additions and 21 deletions

View file

@ -152,7 +152,7 @@ pub enum StackPopCleanup {
/// `ret` stores the block we jump to on a normal return, while `unwind`
/// stores the block used for cleanup during unwinding.
Goto { ret: Option<mir::BasicBlock>, unwind: StackPopUnwind },
/// Just do nothing: Used by Main and for the `box_alloc` hook in miri.
/// Just do nothing: Used by Main and for TLS hooks in miri.
/// `cleanup` says whether locals are deallocated. Static computation
/// wants them leaked to intern what they need (and just throw away
/// the entire `ecx` when it is done).