Used inherited mutability in lexer::Reader.
This commit is contained in:
parent
b8601a3d8b
commit
7cf4d8bc44
6 changed files with 334 additions and 389 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue