diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-07 08:06:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-07 08:06:13 +0200 |
| commit | e6a76891ef86d390ee23bd8f2f08c930f0a15d63 (patch) | |
| tree | c5a6e384257a45f6c866bfb26ef18d0cea73492b /src/libsyntax/parse | |
| parent | d5caeac0964c0ce23e38e1bf75706fedbf1cd32c (diff) | |
| parent | 055d3798d40ca0eefa52fa152bf3c913240281af (diff) | |
| download | rust-e6a76891ef86d390ee23bd8f2f08c930f0a15d63.tar.gz rust-e6a76891ef86d390ee23bd8f2f08c930f0a15d63.zip | |
Rollup merge of #64236 - matklad:reduce-visibility, r=Centril
reduce visibility
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 49b05551bae..ab5462baaf7 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -132,7 +132,7 @@ pub struct Parser<'a> { /// into modules, and sub-parsers have new values for this name. pub root_module_name: Option<String>, crate expected_tokens: Vec<TokenType>, - crate token_cursor: TokenCursor, + token_cursor: TokenCursor, desugar_doc_comments: bool, /// `true` we should configure out of line modules as we parse. pub cfg_mods: bool, @@ -161,19 +161,19 @@ impl<'a> Drop for Parser<'a> { } #[derive(Clone)] -crate struct TokenCursor { - crate frame: TokenCursorFrame, - crate stack: Vec<TokenCursorFrame>, +struct TokenCursor { + frame: TokenCursorFrame, + stack: Vec<TokenCursorFrame>, } #[derive(Clone)] -crate struct TokenCursorFrame { - crate delim: token::DelimToken, - crate span: DelimSpan, - crate open_delim: bool, - crate tree_cursor: tokenstream::Cursor, - crate close_delim: bool, - crate last_token: LastToken, +struct TokenCursorFrame { + delim: token::DelimToken, + span: DelimSpan, + open_delim: bool, + tree_cursor: tokenstream::Cursor, + close_delim: bool, + last_token: LastToken, } /// This is used in `TokenCursorFrame` above to track tokens that are consumed |
