Skip to content

Commit 055d379

Browse files
committed
reduce visibility
1 parent 4894123 commit 055d379

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/libsyntax/parse/parser.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pub struct Parser<'a> {
132132
/// into modules, and sub-parsers have new values for this name.
133133
pub root_module_name: Option<String>,
134134
crate expected_tokens: Vec<TokenType>,
135-
crate token_cursor: TokenCursor,
135+
token_cursor: TokenCursor,
136136
desugar_doc_comments: bool,
137137
/// `true` we should configure out of line modules as we parse.
138138
pub cfg_mods: bool,
@@ -161,19 +161,19 @@ impl<'a> Drop for Parser<'a> {
161161
}
162162

163163
#[derive(Clone)]
164-
crate struct TokenCursor {
165-
crate frame: TokenCursorFrame,
166-
crate stack: Vec<TokenCursorFrame>,
164+
struct TokenCursor {
165+
frame: TokenCursorFrame,
166+
stack: Vec<TokenCursorFrame>,
167167
}
168168

169169
#[derive(Clone)]
170-
crate struct TokenCursorFrame {
171-
crate delim: token::DelimToken,
172-
crate span: DelimSpan,
173-
crate open_delim: bool,
174-
crate tree_cursor: tokenstream::Cursor,
175-
crate close_delim: bool,
176-
crate last_token: LastToken,
170+
struct TokenCursorFrame {
171+
delim: token::DelimToken,
172+
span: DelimSpan,
173+
open_delim: bool,
174+
tree_cursor: tokenstream::Cursor,
175+
close_delim: bool,
176+
last_token: LastToken,
177177
}
178178

179179
/// This is used in `TokenCursorFrame` above to track tokens that are consumed

src/libsyntax/util/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub enum Fixity {
6969

7070
impl AssocOp {
7171
/// Creates a new AssocOP from a token
72-
pub fn from_token(t: &Token) -> Option<AssocOp> {
72+
crate fn from_token(t: &Token) -> Option<AssocOp> {
7373
use AssocOp::*;
7474
match t.kind {
7575
token::BinOpEq(k) => Some(AssignOp(k)),

0 commit comments

Comments
 (0)