Limit the visibility further and expand on a comment
This commit is contained in:
parent
4b085337bb
commit
1fe7eb0094
1 changed files with 3 additions and 2 deletions
|
@ -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>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue