about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-16 15:16:02 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-16 15:16:02 +0100
commit1fe7eb00944c3c41059e16daa7b401bc8b04447c (patch)
tree5b884f6333b253fdcf6c3be906be4a2cec9dc029
parent4b085337bbb3434604f90503538e0211eb3bb8f6 (diff)
downloadrust-1fe7eb00944c3c41059e16daa7b401bc8b04447c.tar.gz
rust-1fe7eb00944c3c41059e16daa7b401bc8b04447c.zip
Limit the visibility further and expand on a comment
-rw-r--r--src/librustc_mir/interpret/operand.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_mir/interpret/operand.rs b/src/librustc_mir/interpret/operand.rs
index 311c5c6d10b..de362a7a96a 100644
--- a/src/librustc_mir/interpret/operand.rs
+++ b/src/librustc_mir/interpret/operand.rs
@@ -562,7 +562,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
     }
 
     // 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 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
         }
     }
 
-    // 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>,