Add a doc comment for eval_mir_constant
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
@@ -512,6 +512,8 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Evaluate the given constant. The `eval` function will do all the required evaluation,
|
||||||
|
/// but this hook has the chance to do some pre/postprocessing.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn eval_mir_constant<F>(
|
fn eval_mir_constant<F>(
|
||||||
ecx: &InterpCx<'mir, 'tcx, Self>,
|
ecx: &InterpCx<'mir, 'tcx, Self>,
|
||||||
|
|||||||
Reference in New Issue
Block a user