Skip to content

Commit 4397d66

Browse files
committed
Document op_to_const's purpose
1 parent 6d3c7bb commit 4397d66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir/src/const_eval/eval_queries.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ pub(super) fn mk_eval_cx<'mir, 'tcx>(
104104
)
105105
}
106106

107+
/// This function converts an interpreter value into a constant that is meant for use in the
108+
/// type system.
107109
pub(super) fn op_to_const<'tcx>(
108110
ecx: &CompileTimeEvalContext<'_, 'tcx>,
109111
op: OpTy<'tcx>,

0 commit comments

Comments
 (0)