]> git.lizzy.rs Git - rust.git/commitdiff
Update docs and visibilities of const to op methods
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Sat, 16 Feb 2019 14:05:14 +0000 (15:05 +0100)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Sat, 16 Feb 2019 14:05:14 +0000 (15:05 +0100)
src/librustc_mir/interpret/operand.rs

index 08f6667039a341bab54d57aa51904ea5f0379246..311c5c6d10be367f5cbf5ba5c0e05a5e5feb2534 100644 (file)
@@ -561,7 +561,7 @@ pub(super) fn eval_operands(
             .collect()
     }
 
             .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>,
     pub fn eval_lazy_const_to_op(
         &self,
         val: ty::LazyConst<'tcx>,
@@ -580,8 +580,8 @@ pub fn eval_lazy_const_to_op(
         }
     }
 
         }
     }
 
-    // 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>>,
         &self,
         val: ty::Const<'tcx>,
         layout: Option<TyLayout<'tcx>>,