pub fn mk_eval_cx_for_const_val<'tcx>(
tcx: TyCtxtAt<'tcx>,
typing_env: TypingEnv<'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.