Commit 30ce15f 1 parent 1baf3ff commit 30ce15f Copy full SHA for 30ce15f
File tree 1 file changed +3
-3
lines changed
compiler/rustc_parse/src/lexer
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub struct UnmatchedBrace {
27
27
pub candidate_span : Option < Span > ,
28
28
}
29
29
30
- pub struct StringReader < ' a > {
30
+ crate struct StringReader < ' a > {
31
31
sess : & ' a ParseSess ,
32
32
/// Initial position, read-only.
33
33
start_pos : BytePos ,
@@ -41,7 +41,7 @@ pub struct StringReader<'a> {
41
41
}
42
42
43
43
impl < ' a > StringReader < ' a > {
44
- pub fn new (
44
+ crate fn new (
45
45
sess : & ' a ParseSess ,
46
46
source_file : Lrc < rustc_span:: SourceFile > ,
47
47
override_span : Option < Span > ,
@@ -66,7 +66,7 @@ impl<'a> StringReader<'a> {
66
66
}
67
67
68
68
/// Returns the next token, including trivia like whitespace or comments.
69
- pub fn next_token ( & mut self ) -> Token {
69
+ fn next_token ( & mut self ) -> Token {
70
70
let start_src_index = self . src_index ( self . pos ) ;
71
71
let text: & str = & self . src [ start_src_index..self . end_src_index ] ;
72
72
You can’t perform that action at this time.
0 commit comments