1
Fork 0

Limit the visibility further and expand on a comment

This commit is contained in:
Oliver Scherer 2019-02-16 15:16:02 +01:00
parent 4b085337bb
commit 1fe7eb0094

View file

@ -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. // 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, &self,
val: ty::LazyConst<'tcx>, val: ty::LazyConst<'tcx>,
layout: Option<TyLayout<'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( crate fn const_to_op(
&self, &self,
val: ty::Const<'tcx>, val: ty::Const<'tcx>,