From ef66bf067b4614cc57f07bcdc186b6344a0bdc6b Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Mon, 13 Jul 2020 19:06:19 +0200 Subject: [PATCH] Make `try_eval` private --- src/librustc_middle/ty/consts/kind.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_middle/ty/consts/kind.rs b/src/librustc_middle/ty/consts/kind.rs index d1deea4a90e..75287ff7dac 100644 --- a/src/librustc_middle/ty/consts/kind.rs +++ b/src/librustc_middle/ty/consts/kind.rs @@ -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>,