Used inherited mutability in lexer::Reader.

This commit is contained in:
Eduard Burtescu 2014-03-27 15:14:58 +02:00
parent b8601a3d8b
commit 7cf4d8bc44
6 changed files with 334 additions and 389 deletions

View file

@ -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;