Skip to content

Commit f361410

Browse files
committed
Rename eval_intrinsic to eval_nulary_intrinsic
1 parent 26c486f commit f361410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/const_eval.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,15 @@ pub fn const_eval_provider<'tcx>(
596596
ty::FnDef(_, substs) => substs,
597597
_ => bug!("intrinsic with type {:?}", ty),
598598
};
599-
return Ok(eval_intrinsic(tcx, key.param_env, def_id, substs));
599+
return Ok(eval_nulary_intrinsic(tcx, key.param_env, def_id, substs));
600600
}
601601

602602
tcx.const_eval_raw(key).and_then(|val| {
603603
validate_and_turn_into_const(tcx, val, key)
604604
})
605605
}
606606

607-
fn eval_intrinsic<'tcx>(
607+
fn eval_nulary_intrinsic<'tcx>(
608608
tcx: TyCtxt<'tcx>,
609609
param_env: ty::ParamEnv<'tcx>,
610610
def_id: DefId,

0 commit comments

Comments
 (0)