1
Fork 0

librustc: De-@mut the parse session

This commit is contained in:
Patrick Walton 2013-12-27 11:56:29 -08:00
parent f553701da6
commit 3aa19a6b86
8 changed files with 48 additions and 49 deletions

View file

@ -286,8 +286,8 @@ struct ParsedItemsAndViewItems {
/* ident is handled by common.rs */
pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
-> Parser {
pub fn Parser(sess: @ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
-> Parser {
let tok0 = rdr.next_token();
let interner = get_ident_interner();
let span = tok0.sp;
@ -324,7 +324,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
}
pub struct Parser {
sess: @mut ParseSess,
sess: @ParseSess,
cfg: CrateConfig,
// the current token:
token: token::Token,