rustc_const_eval::const_eval::valtrees

Function eval_to_valtree

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

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