Skip to content
Permalink
Browse files

Limit the visibility further and expand on a comment

  • Loading branch information...
oli-obk committed Feb 16, 2019
1 parent 4b08533 commit 1fe7eb00944c3c41059e16daa7b401bc8b04447c
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/librustc_mir/interpret/operand.rs
@@ -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>>,
@@ -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>,

0 comments on commit 1fe7eb0

Please sign in to comment.
You can’t perform that action at this time.