]> git.lizzy.rs Git - rust.git/commitdiff
adjust privacy of various types in `build`
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 1 May 2017 15:58:05 +0000 (11:58 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 2 May 2017 18:01:37 +0000 (14:01 -0400)
src/librustc_mir/build/into.rs
src/librustc_mir/build/mod.rs

index 5c133780e433b53b922ed0e1a8a644deec08715d..0d912513c6c765fee1498667f2e1a815287d1055 100644 (file)
@@ -18,7 +18,7 @@
 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>,
index b8f1b754b48e82c51377f89c093dc29f092ed4d7..94c53611e74e3cf0308969689cbde92f9f88e793 100644 (file)
@@ -25,7 +25,7 @@
 
 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 @@ fn index(self) -> usize {
 /// 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>;