Add a doc comment for eval_mir_constant

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Ben Kimock 2024-01-23 10:17:50 -05:00 committed by GitHub
parent 245afd7896
commit c8a675d752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -512,6 +512,8 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
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)]
fn eval_mir_constant<F>(
ecx: &InterpCx<'mir, 'tcx, Self>,