rustc_const_eval::const_eval::valtrees

Function eval_to_valtree

Source
pub(crate) fn eval_to_valtree<'tcx>(
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    cid: GlobalId<'tcx>,
) -> EvalToValTreeResult<'tcx>
Expand description

Evaluates a constant and turns it into a type-level constant value.