Function rustc_const_eval::const_eval::mk_eval_cx_for_const_val
source ยท pub fn mk_eval_cx_for_const_val<'tcx>(
tcx: TyCtxtAt<'tcx>,
param_env: ParamEnv<'tcx>,
val: ConstValue<'tcx>,
ty: Ty<'tcx>,
) -> Option<(CompileTimeInterpCx<'tcx>, OpTy<'tcx>)>
Expand description
Create an interpreter context to inspect the given ConstValue
.
Returns both the context and an OpTy
that represents the constant.