rustc_const_eval::const_eval::valtrees

Function valtree_to_const_value

Source
pub fn valtree_to_const_value<'tcx>(
    tcx: TyCtxt<'tcx>,
    param_env_ty: ParamEnvAnd<'tcx, Ty<'tcx>>,
    valtree: ValTree<'tcx>,
) -> ConstValue<'tcx>
Expand description

Converts a ValTree to a ConstValue, which is needed after mir construction has finished.