Skip to content

Commit

Permalink
make StringReader methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Apr 3, 2019
1 parent 555309d commit 1763aea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -126,7 +126,7 @@ impl<'a> StringReader<'a> {
}

/// Immutably extract string if found at current position with given delimiters
pub fn peek_delimited(&self, from_ch: char, to_ch: char) -> Option<String> {
fn peek_delimited(&self, from_ch: char, to_ch: char) -> Option<String> {
let mut pos = self.pos;
let mut idx = self.src_index(pos);
let mut ch = char_at(&self.src, idx);
Expand Down Expand Up @@ -191,7 +191,7 @@ impl<'a> StringReader<'a> {
self.fatal_span(self.peek_span, m)
}

pub fn emit_fatal_errors(&mut self) {
crate fn emit_fatal_errors(&mut self) {
for err in &mut self.fatal_errs {
err.emit();
}
Expand Down

0 comments on commit 1763aea

Please sign in to comment.