diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2017-05-01 11:58:05 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2017-05-02 14:01:37 -0400 |
| commit | c2cfdbbdf908de88cf6d306949f81dc487d9e6b0 (patch) | |
| tree | 31e7cf6b37080f8b53105152aee3ecf66eb52b94 /src | |
| parent | c1ff10464dc6b685f871d2365e3d8a39de324ba9 (diff) | |
| download | rust-c2cfdbbdf908de88cf6d306949f81dc487d9e6b0.tar.gz rust-c2cfdbbdf908de88cf6d306949f81dc487d9e6b0.zip | |
adjust privacy of various types in `build`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/build/into.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/build/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_mir/build/into.rs b/src/librustc_mir/build/into.rs index 5c133780e43..0d912513c6c 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 b8f1b754b48..94c53611e74 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<T>(BasicBlock, T); +struct BlockAnd<T>(BasicBlock, T); trait BlockAndExtension { fn and<T>(self, v: T) -> BlockAnd<T>; |
