File tree 1 file changed +5
-8
lines changed
compiler/rustc_const_eval/src/interpret
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -184,14 +184,11 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
184
184
185
185
/// Entry point to all function calls.
186
186
///
187
- /// Returns either the mir to use for the call, or `None` if execution should
188
- /// just proceed (which usually means this hook did all the work that the
189
- /// called function should usually have done). In the latter case, it is
190
- /// this hook's responsibility to advance the instruction pointer!
191
- /// (This is to support functions like `__rust_maybe_catch_panic` that neither find a MIR
192
- /// nor just jump to `ret`, but instead push their own stack frame.)
193
- /// Passing `dest`and `ret` in the same `Option` proved very annoying when only one of them
194
- /// was used.
187
+ /// Returns either the mir to use for the call, or an [`ExtraFnVal`] for special functions
188
+ /// handled by [`call_extra_fn`].
189
+ ///
190
+ /// [`ExtraFnVal`]: Machine::ExtraFnVal
191
+ /// [`call_extra_fn`]: Machine::call_extra_fn
195
192
fn find_mir_or_extra_fn (
196
193
ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
197
194
instance : ty:: Instance < ' tcx > ,
You can’t perform that action at this time.
0 commit comments