-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and visibilities of const to op methods
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -561,7 +561,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> | |
.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( | ||
This comment has been minimized.
Sorry, something went wrong. |
||
&self, | ||
val: ty::LazyConst<'tcx>, | ||
|
@@ -580,8 +580,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> | |
} | ||
} | ||
|
||
// 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( | ||
This comment has been minimized.
Sorry, something went wrong.
RalfJung
Member
|
||
&self, | ||
val: ty::Const<'tcx>, | ||
layout: Option<TyLayout<'tcx>>, | ||
|
So this cannot become
crate
?