Skip to content

Commit 555309d

Browse files
committed
make StringReader fields private
1 parent 546cb21 commit 555309d

File tree

1 file changed

+6
-6
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+6
-6
lines changed

src/libsyntax/parse/lexer/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ pub struct UnmatchedBrace {
4343
}
4444

4545
pub struct StringReader<'a> {
46-
pub sess: &'a ParseSess,
46+
crate sess: &'a ParseSess,
4747
/// The absolute offset within the source_map of the next character to read
48-
pub next_pos: BytePos,
48+
crate next_pos: BytePos,
4949
/// The absolute offset within the source_map of the current character
50-
pub pos: BytePos,
50+
crate pos: BytePos,
5151
/// The current character (which has been read from self.pos)
52-
pub ch: Option<char>,
53-
pub source_file: Lrc<syntax_pos::SourceFile>,
52+
crate ch: Option<char>,
53+
crate source_file: Lrc<syntax_pos::SourceFile>,
5454
/// Stop reading src at this index.
55-
pub end_src_index: usize,
55+
crate end_src_index: usize,
5656
// cached:
5757
peek_tok: token::Token,
5858
peek_span: Span,

0 commit comments

Comments
 (0)