mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add a doc comment for eval_mir_constant
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
245afd7896
commit
c8a675d752
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user