diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-04-03 18:20:50 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-04-03 18:20:50 +0300 |
| commit | 555309d9332677b2d73be926a604b17bf33c8c22 (patch) | |
| tree | 246d6319c96abdf9b04ae05ad1043df775742cdb /src/libsyntax/parse | |
| parent | 546cb21f580ae3d4e0bf42ccecfad4a34defebe7 (diff) | |
| download | rust-555309d9332677b2d73be926a604b17bf33c8c22.tar.gz rust-555309d9332677b2d73be926a604b17bf33c8c22.zip | |
make StringReader fields private
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index cd4944deadb..fb1a62cd0f0 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -43,16 +43,16 @@ pub struct UnmatchedBrace { } pub struct StringReader<'a> { - pub sess: &'a ParseSess, + crate sess: &'a ParseSess, /// The absolute offset within the source_map of the next character to read - pub next_pos: BytePos, + crate next_pos: BytePos, /// The absolute offset within the source_map of the current character - pub pos: BytePos, + crate pos: BytePos, /// The current character (which has been read from self.pos) - pub ch: Option<char>, - pub source_file: Lrc<syntax_pos::SourceFile>, + crate ch: Option<char>, + crate source_file: Lrc<syntax_pos::SourceFile>, /// Stop reading src at this index. - pub end_src_index: usize, + crate end_src_index: usize, // cached: peek_tok: token::Token, peek_span: Span, |
