Skip to content

Commit 3f17b34

Browse files
committed
Fixup doc comment
1 parent dc9b611 commit 3f17b34

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

compiler/rustc_const_eval/src/interpret/machine.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,11 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
184184

185185
/// Entry point to all function calls.
186186
///
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
195192
fn find_mir_or_extra_fn(
196193
ecx: &mut InterpCx<'mir, 'tcx, Self>,
197194
instance: ty::Instance<'tcx>,

0 commit comments

Comments
 (0)