make some things a bit more private
This commit is contained in:
parent
018d128325
commit
b1453dda0f
|
@ -77,7 +77,7 @@ pub fn mk_eval_cx<'a, 'tcx>(
|
|||
Ok(ecx)
|
||||
}
|
||||
|
||||
pub fn eval_promoted<'a, 'mir, 'tcx>(
|
||||
pub(crate) fn eval_promoted<'a, 'mir, 'tcx>(
|
||||
tcx: TyCtxt<'a, 'tcx, 'tcx>,
|
||||
cid: GlobalId<'tcx>,
|
||||
mir: &'mir mir::Mir<'tcx>,
|
||||
|
|
|
@ -41,10 +41,10 @@ pub struct EvalContext<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'a, 'mir, 'tcx>> {
|
|||
pub machine: M,
|
||||
|
||||
/// The results of the type checker, from rustc.
|
||||
pub tcx: TyCtxtAt<'a, 'tcx, 'tcx>,
|
||||
pub(crate) tcx: TyCtxtAt<'a, 'tcx, 'tcx>,
|
||||
|
||||
/// Bounds in scope for polymorphic evaluations.
|
||||
pub param_env: ty::ParamEnv<'tcx>,
|
||||
pub(crate) param_env: ty::ParamEnv<'tcx>,
|
||||
|
||||
/// The virtual memory system.
|
||||
pub memory: Memory<'a, 'mir, 'tcx, M>,
|
||||
|
|
|
@ -57,7 +57,8 @@ pub struct Memory<'a, 'mir, 'tcx: 'a + 'mir, M: Machine<'a, 'mir, 'tcx>> {
|
|||
/// that do not exist any more.
|
||||
dead_alloc_map: FxHashMap<AllocId, (Size, Align)>,
|
||||
|
||||
pub tcx: TyCtxtAt<'a, 'tcx, 'tcx>,
|
||||
/// Lets us implement `HasDataLayout`, which is awfully convenient.
|
||||
pub(super) tcx: TyCtxtAt<'a, 'tcx, 'tcx>,
|
||||
}
|
||||
|
||||
impl<'b, 'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> HasDataLayout
|
||||
|
|
Loading…
Reference in New Issue