Function rustc_mir::const_eval::eval_queries::op_to_const[][src]

pub(super) fn op_to_const<'tcx>(
    ecx: &InterpCx<'_, 'tcx, CompileTimeInterpreter<'_, 'tcx>>,
    op: &OpTy<'tcx>
) -> ConstValue<'tcx>
Expand description

This function converts an interpreter value into a constant that is meant for use in the type system.