From 4c2353adee4094ebcd99653ef168d607fe843144 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 2 Mar 2014 15:26:39 -0800 Subject: Make visible types public in rustc --- src/libsyntax/ext/expand.rs | 4 ++-- src/libsyntax/lib.rs | 1 - src/libsyntax/parse/parser.rs | 2 +- src/libsyntax/print/pp.rs | 4 ++-- src/libsyntax/print/pprust.rs | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index b162e17f53d..d8b4334c867 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -660,7 +660,7 @@ fn expand_non_macro_stmt(s: &Stmt, fld: &mut MacroExpander) // from a given thingy and puts them in a mutable // array (passed in to the traversal) #[deriving(Clone)] -struct NewNameFinderContext { +pub struct NewNameFinderContext { ident_accumulator: Vec , } @@ -748,7 +748,7 @@ pub fn expand_block_elts(b: &Block, fld: &mut MacroExpander) -> P { }) } -struct IdentRenamer<'a> { +pub struct IdentRenamer<'a> { renames: &'a mut RenameList, } diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 260375b5f81..42c9ab461aa 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -31,7 +31,6 @@ This API is completely unstable and subject to change. #[feature(quote)]; #[deny(non_camel_case_types)]; -#[allow(visible_private_types)]; extern crate serialize; extern crate term; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 9b209aadf19..2557af5e436 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -87,7 +87,7 @@ use std::vec_ng; #[allow(non_camel_case_types)] #[deriving(Eq)] -enum restriction { +pub enum restriction { UNRESTRICTED, RESTRICT_STMT_EXPR, RESTRICT_NO_BAR_OP, diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index e9e0e483593..b3e7ac667d8 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -139,12 +139,12 @@ pub fn buf_str(toks: Vec , szs: Vec , left: uint, right: uint, return s; } -enum PrintStackBreak { +pub enum PrintStackBreak { Fits, Broken(Breaks), } -struct PrintStackElem { +pub struct PrintStackElem { offset: int, pbreak: PrintStackBreak } diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index d027efc1d42..ec8c474d194 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1027,7 +1027,7 @@ pub fn print_block_with_attrs(s: &mut State, true) } -enum EmbedType { +pub enum EmbedType { BlockBlockFn, BlockNormal, } -- cgit 1.4.1-3-g733a5