]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_middle/src/ty/consts/kind.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / compiler / rustc_middle / src / ty / consts / kind.rs
index b8da35abd47033dc875b4a186119d1be77bba092..35d286d2c5781e607a53004969fd7e9f6956f248 100644 (file)
@@ -126,7 +126,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(super) fn try_eval(
+    // FIXME(@lcnr): Completely rework the evaluation/normalization system for `ty::Const` once valtrees are merged.
+    pub fn try_eval(
         self,
         tcx: TyCtxt<'tcx>,
         param_env: ParamEnv<'tcx>,