adjust privacy of various types in build
This commit is contained in:
parent
c1ff10464d
commit
c2cfdbbdf9
2 changed files with 3 additions and 3 deletions
|
@ -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>,
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue