Function rustc_const_eval::const_eval::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.