Make try_eval
private
This commit is contained in:
parent
763aaef670
commit
ef66bf067b
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user