Skip to content

Commit

Permalink
Make try_eval private
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 16, 2020
1 parent 763aaef commit ef66bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_middle/ty/consts/kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ impl<'tcx> ConstKind<'tcx> {

#[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>,
Expand Down

0 comments on commit ef66bf0

Please sign in to comment.