Skip to content

Commit 1fe7eb0

Browse files
committed
Limit the visibility further and expand on a comment
1 parent 4b08533 commit 1fe7eb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc_mir/interpret/operand.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
562562
}
563563

564564
// Used when Miri runs into a constant, and by const propagation.
565-
pub fn eval_lazy_const_to_op(
565+
crate fn eval_lazy_const_to_op(
566566
&self,
567567
val: ty::LazyConst<'tcx>,
568568
layout: Option<TyLayout<'tcx>>,
@@ -580,7 +580,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
580580
}
581581
}
582582

583-
// Used when the miri-engine runs into a constant.
583+
// Used when the miri-engine runs into a constant and for extracting information from constants
584+
// in patterns via the `const_eval` module
584585
crate fn const_to_op(
585586
&self,
586587
val: ty::Const<'tcx>,

0 commit comments

Comments
 (0)