Skip to content

Commit ef66bf0

Browse files
committed
Make try_eval private
1 parent 763aaef commit ef66bf0

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_middle/ty/consts

1 file changed

+2
-2
lines changed

src/librustc_middle/ty/consts/kind.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ impl<'tcx> ConstKind<'tcx> {
8787

8888
#[inline]
8989
/// Tries to evaluate the constant if it is `Unevaluated`. If that isn't possible or necessary
90-
// return None
91-
pub fn try_eval(
90+
/// return `None`.
91+
pub(super) fn try_eval(
9292
self,
9393
tcx: TyCtxt<'tcx>,
9494
param_env: ParamEnv<'tcx>,

0 commit comments

Comments
 (0)