Skip to content

Commit

Permalink
Add a doc comment for eval_mir_constant
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
saethlin and RalfJung authored Jan 23, 2024
1 parent 245afd7 commit c8a675d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_const_eval/src/interpret/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit c8a675d

Please sign in to comment.