Skip to content

Commit 9310a64

Browse files
committed
Rename eval_intrinsic to eval_nulary_intrinsic
1 parent d550cc9 commit 9310a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/const_eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,15 +613,15 @@ pub fn const_eval_provider<'tcx>(
613613
ty::FnDef(_, substs) => substs,
614614
_ => bug!("intrinsic with type {:?}", ty),
615615
};
616-
return Ok(eval_intrinsic(tcx, key.param_env, def_id, substs));
616+
return Ok(eval_nulary_intrinsic(tcx, key.param_env, def_id, substs));
617617
}
618618

619619
tcx.const_eval_raw(key).and_then(|val| {
620620
validate_and_turn_into_const(tcx, val, key)
621621
})
622622
}
623623

624-
fn eval_intrinsic<'tcx>(
624+
fn eval_nulary_intrinsic<'tcx>(
625625
tcx: TyCtxt<'tcx>,
626626
param_env: ty::ParamEnv<'tcx>,
627627
def_id: DefId,

0 commit comments

Comments
 (0)