Used inherited mutability in lexer::Reader.
This commit is contained in:
@@ -274,7 +274,7 @@ struct ParsedItemsAndViewItems {
|
||||
|
||||
/* ident is handled by common.rs */
|
||||
|
||||
pub fn Parser<'a>(sess: &'a ParseSess, cfg: ast::CrateConfig, rdr: ~Reader:)
|
||||
pub fn Parser<'a>(sess: &'a ParseSess, cfg: ast::CrateConfig, mut rdr: ~Reader:)
|
||||
-> Parser<'a> {
|
||||
let tok0 = rdr.next_token();
|
||||
let span = tok0.sp;
|
||||
|
||||
Reference in New Issue
Block a user