Skip to content

Commit

Permalink
Rename eval_intrinsic to eval_nulary_intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 21, 2019
1 parent 26c486f commit f361410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/const_eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,15 @@ pub fn const_eval_provider<'tcx>(
ty::FnDef(_, substs) => substs,
_ => bug!("intrinsic with type {:?}", ty),
};
return Ok(eval_intrinsic(tcx, key.param_env, def_id, substs));
return Ok(eval_nulary_intrinsic(tcx, key.param_env, def_id, substs));
}

tcx.const_eval_raw(key).and_then(|val| {
validate_and_turn_into_const(tcx, val, key)
})
}

fn eval_intrinsic<'tcx>(
fn eval_nulary_intrinsic<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ty::ParamEnv<'tcx>,
def_id: DefId,
Expand Down

0 comments on commit f361410

Please sign in to comment.