about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-16 15:05:14 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-02-16 15:05:14 +0100
commit4b085337bbb3434604f90503538e0211eb3bb8f6 (patch)
tree28dc979edf9e2dab9fc69888e3f95027f41b8787
parent4fdeb2da747231b03f85786f4ef6ce04d88da864 (diff)
downloadrust-4b085337bbb3434604f90503538e0211eb3bb8f6.tar.gz
rust-4b085337bbb3434604f90503538e0211eb3bb8f6.zip
Update docs and visibilities of const to op methods
-rw-r--r--src/librustc_mir/interpret/operand.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/interpret/operand.rs b/src/librustc_mir/interpret/operand.rs
index 08f6667039a..311c5c6d10b 100644
--- a/src/librustc_mir/interpret/operand.rs
+++ b/src/librustc_mir/interpret/operand.rs
@@ -561,7 +561,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
             .collect()
     }
 
-    // Used when Miri runs into a constant, and by CTFE.
+    // Used when Miri runs into a constant, and by const propagation.
     pub fn eval_lazy_const_to_op(
         &self,
         val: ty::LazyConst<'tcx>,
@@ -580,8 +580,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
         }
     }
 
-    // Used when Miri runs into a constant, and by CTFE.
-    pub fn const_to_op(
+    // Used when the miri-engine runs into a constant.
+    crate fn const_to_op(
         &self,
         val: ty::Const<'tcx>,
         layout: Option<TyLayout<'tcx>>,