mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
adjust privacy of various types in build
This commit is contained in:
@@ -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>,
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user