Skip to content

Commit c8a675d

Browse files
saethlinRalfJung
andauthored
Add a doc comment for eval_mir_constant
Co-authored-by: Ralf Jung <[email protected]>
1 parent 245afd7 commit c8a675d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_const_eval/src/interpret/machine.rs

+2
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized {
512512
Ok(())
513513
}
514514

515+
/// Evaluate the given constant. The `eval` function will do all the required evaluation,
516+
/// but this hook has the chance to do some pre/postprocessing.
515517
#[inline(always)]
516518
fn eval_mir_constant<F>(
517519
ecx: &InterpCx<'mir, 'tcx, Self>,

0 commit comments

Comments
 (0)