diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-03-02 15:26:39 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-03-02 15:26:39 -0800 |
| commit | 4c2353adee4094ebcd99653ef168d607fe843144 (patch) | |
| tree | 69977673d908019d6025c9ea7a1af535864064c6 /src/libsyntax | |
| parent | 51233c52199241f95679f961eda77da03943681b (diff) | |
| download | rust-4c2353adee4094ebcd99653ef168d607fe843144.tar.gz rust-4c2353adee4094ebcd99653ef168d607fe843144.zip | |
Make visible types public in rustc
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/lib.rs | 1 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/print/pp.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 2 |
5 files changed, 6 insertions, 7 deletions
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<ast::Ident> , } @@ -748,7 +748,7 @@ pub fn expand_block_elts(b: &Block, fld: &mut MacroExpander) -> P<Block> { }) } -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<Token> , szs: Vec<int> , 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, } |
