Skip to content

Commit 4b08533

Browse files
committed
Update docs and visibilities of const to op methods
1 parent 4fdeb2d commit 4b08533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_mir/interpret/operand.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
561561
.collect()
562562
}
563563

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

583-
// Used when Miri runs into a constant, and by CTFE.
584-
pub fn const_to_op(
583+
// Used when the miri-engine runs into a constant.
584+
crate fn const_to_op(
585585
&self,
586586
val: ty::Const<'tcx>,
587587
layout: Option<TyLayout<'tcx>>,

0 commit comments

Comments
 (0)