@@ -141,7 +141,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
141
141
/// Returns either the mir to use for the call, or `None` if execution should
142
142
/// just proceed (which usually means this hook did all the work that the
143
143
/// called function should usually have done). In the latter case, it is
144
- /// this hook's responsibility to call `goto_block(ret)` to advance the instruction pointer!
144
+ /// this hook's responsibility to advance the instruction pointer!
145
145
/// (This is to support functions like `__rust_maybe_catch_panic` that neither find a MIR
146
146
/// nor just jump to `ret`, but instead push their own stack frame.)
147
147
/// Passing `dest`and `ret` in the same `Option` proved very annoying when only one of them
@@ -155,7 +155,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
155
155
unwind : Option < mir:: BasicBlock >
156
156
) -> InterpResult < ' tcx , Option < & ' mir mir:: Body < ' tcx > > > ;
157
157
158
- /// Execute `fn_val`. it is the hook's responsibility to advance the instruction
158
+ /// Execute `fn_val`. It is the hook's responsibility to advance the instruction
159
159
/// pointer as appropriate.
160
160
fn call_extra_fn (
161
161
ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
@@ -165,8 +165,8 @@ pub trait Machine<'mir, 'tcx>: Sized {
165
165
ret : Option < mir:: BasicBlock > ,
166
166
) -> InterpResult < ' tcx > ;
167
167
168
- /// Directly process an intrinsic without pushing a stack frame.
169
- /// If this returns successfully, the engine will take care of jumping to the next block .
168
+ /// Directly process an intrinsic without pushing a stack frame. It is the hook's
169
+ /// responsibility to advance the instruction pointer as appropriate .
170
170
fn call_intrinsic (
171
171
ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
172
172
span : Span ,
0 commit comments