From: Oliver Scherer Date: Sat, 16 Feb 2019 14:16:02 +0000 (+0100) Subject: Limit the visibility further and expand on a comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1fe7eb00944c3c41059e16daa7b401bc8b04447c;p=rust.git Limit the visibility further and expand on a comment --- 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 @@ 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>, @@ -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>,