]> git.lizzy.rs Git - rust.git/commitdiff
Limit the visibility further and expand on a comment
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sat, 16 Feb 2019 14:16:02 +0000 (15:16 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Sat, 16 Feb 2019 14:16:02 +0000 (15:16 +0100)
src/librustc_mir/interpret/operand.rs

index 311c5c6d10be367f5cbf5ba5c0e05a5e5feb2534..de362a7a96a7ffe299867e5a62fcaa66c8d0489c 100644 (file)
@@ -562,7 +562,7 @@ pub(super) fn eval_operands(
     }
 
     // Used when Miri runs into a constant, and by const propagation.
-    pub fn eval_lazy_const_to_op(
+    crate fn eval_lazy_const_to_op(
         &self,
         val: ty::LazyConst<'tcx>,
         layout: Option<TyLayout<'tcx>>,
@@ -580,7 +580,8 @@ pub fn eval_lazy_const_to_op(
         }
     }
 
-    // Used when the miri-engine runs into a constant.
+    // Used when the miri-engine runs into a constant and for extracting information from constants
+    // in patterns via the `const_eval` module
     crate fn const_to_op(
         &self,
         val: ty::Const<'tcx>,