rustc_const_eval::interpret::intrinsics

Function eval_nullary_intrinsic

Source
pub(crate) fn eval_nullary_intrinsic<'tcx>(
    tcx: TyCtxt<'tcx>,
    typing_env: TypingEnv<'tcx>,
    def_id: DefId,
    args: GenericArgsRef<'tcx>,
) -> InterpResult<'tcx, ConstValue<'tcx>>
Expand description

The logic for all nullary intrinsics is implemented here. These intrinsics don’t get evaluated inside an InterpCx and instead have their value computed directly from rustc internal info.