diff --git a/src/librustc_mir/build/into.rs b/src/librustc_mir/build/into.rs index 5c133780e433..0d912513c6c7 100644 --- a/src/librustc_mir/build/into.rs +++ b/src/librustc_mir/build/into.rs @@ -18,7 +18,7 @@ use build::{BlockAnd, Builder}; use hair::*; use rustc::mir::*; -pub trait EvalInto<'tcx> { +pub(in build) trait EvalInto<'tcx> { fn eval_into<'a, 'gcx>(self, builder: &mut Builder<'a, 'gcx, 'tcx>, destination: &Lvalue<'tcx>, diff --git a/src/librustc_mir/build/mod.rs b/src/librustc_mir/build/mod.rs index b8f1b754b48e..94c53611e74e 100644 --- a/src/librustc_mir/build/mod.rs +++ b/src/librustc_mir/build/mod.rs @@ -25,7 +25,7 @@ use rustc_data_structures::indexed_vec::{IndexVec, Idx}; use std::u32; -pub struct Builder<'a, 'gcx: 'a+'tcx, 'tcx: 'a> { +struct Builder<'a, 'gcx: 'a+'tcx, 'tcx: 'a> { hir: Cx<'a, 'gcx, 'tcx>, cfg: CFG<'tcx>, @@ -82,7 +82,7 @@ impl Idx for ScopeId { /// convenient. #[must_use] // if you don't use one of these results, you're leaving a dangling edge -pub struct BlockAnd(BasicBlock, T); +struct BlockAnd(BasicBlock, T); trait BlockAndExtension { fn and(self, v: T) -> BlockAnd;