Make try_eval private

This commit is contained in:
Oliver Scherer 2020-07-13 19:06:19 +02:00
parent 763aaef670
commit ef66bf067b

View File

@ -87,8 +87,8 @@ pub fn eval(self, tcx: TyCtxt<'tcx>, param_env: ParamEnv<'tcx>) -> Self {
#[inline]
/// Tries to evaluate the constant if it is `Unevaluated`. If that isn't possible or necessary
// return None
pub fn try_eval(
/// return `None`.
pub(super) fn try_eval(
self,
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,