remove peek_span_src_raw from StringReader

This commit is contained in:
Aleksey Kladov 2019-07-03 12:52:22 +03:00
parent e9dc95c86e
commit 256df83f64
3 changed files with 46 additions and 69 deletions

View file

@ -53,7 +53,7 @@ impl<'a> SpanUtils<'a> {
pub fn sub_span_of_token(&self, span: Span, tok: TokenKind) -> Option<Span> {
let mut toks = self.retokenise_span(span);
loop {
let next = toks.real_token();
let next = toks.next_token();
if next == token::Eof {
return None;
}