Skip to content

Commit c2cfdbb

Browse files
committed
adjust privacy of various types in build
1 parent c1ff104 commit c2cfdbb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_mir/build/into.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use build::{BlockAnd, Builder};
1818
use hair::*;
1919
use rustc::mir::*;
2020

21-
pub trait EvalInto<'tcx> {
21+
pub(in build) trait EvalInto<'tcx> {
2222
fn eval_into<'a, 'gcx>(self,
2323
builder: &mut Builder<'a, 'gcx, 'tcx>,
2424
destination: &Lvalue<'tcx>,

src/librustc_mir/build/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use rustc_data_structures::indexed_vec::{IndexVec, Idx};
2525

2626
use std::u32;
2727

28-
pub struct Builder<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
28+
struct Builder<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
2929
hir: Cx<'a, 'gcx, 'tcx>,
3030
cfg: CFG<'tcx>,
3131

@@ -82,7 +82,7 @@ impl Idx for ScopeId {
8282
/// convenient.
8383
8484
#[must_use] // if you don't use one of these results, you're leaving a dangling edge
85-
pub struct BlockAnd<T>(BasicBlock, T);
85+
struct BlockAnd<T>(BasicBlock, T);
8686

8787
trait BlockAndExtension {
8888
fn and<T>(self, v: T) -> BlockAnd<T>;

0 commit comments

Comments
 (0)