@@ -141,7 +141,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
141141 /// Returns either the mir to use for the call, or `None` if execution should
142142 /// just proceed (which usually means this hook did all the work that the
143143 /// 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!
145145 /// (This is to support functions like `__rust_maybe_catch_panic` that neither find a MIR
146146 /// nor just jump to `ret`, but instead push their own stack frame.)
147147 /// 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 {
155155 unwind : Option < mir:: BasicBlock >
156156 ) -> InterpResult < ' tcx , Option < & ' mir mir:: Body < ' tcx > > > ;
157157
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
159159 /// pointer as appropriate.
160160 fn call_extra_fn (
161161 ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
@@ -165,8 +165,8 @@ pub trait Machine<'mir, 'tcx>: Sized {
165165 ret : Option < mir:: BasicBlock > ,
166166 ) -> InterpResult < ' tcx > ;
167167
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 .
170170 fn call_intrinsic (
171171 ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
172172 span : Span ,
0 commit comments