Document op_to_const
's purpose
This commit is contained in:
parent
6d3c7bb70d
commit
4397d66d42
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ pub(super) fn mk_eval_cx<'mir, 'tcx>(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// This function converts an interpreter value into a constant that is meant for use in the
|
||||||
|
/// type system.
|
||||||
pub(super) fn op_to_const<'tcx>(
|
pub(super) fn op_to_const<'tcx>(
|
||||||
ecx: &CompileTimeEvalContext<'_, 'tcx>,
|
ecx: &CompileTimeEvalContext<'_, 'tcx>,
|
||||||
op: OpTy<'tcx>,
|
op: OpTy<'tcx>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue