Skip to content

Commit

Permalink
Limit the visibility further and expand on a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Feb 16, 2019
1 parent 4b08533 commit 1fe7eb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc_mir/interpret/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
pub fn eval_lazy_const_to_op(
crate fn eval_lazy_const_to_op(
&self,
val: ty::LazyConst<'tcx>,
layout: Option<TyLayout<'tcx>>,
Expand All @@ -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(
&self,
val: ty::Const<'tcx>,
Expand Down

0 comments on commit 1fe7eb0

Please sign in to comment.