auto merge of #8455 : nikomatsakis/rust/issue-5762-objects-dralston-d, r=graydon

Fix #5762 and various other aspects of object invocation.

r? @graydon
This commit is contained in:
bors 2013-08-11 14:17:09 -07:00
commit b285f1e6c9
65 changed files with 1154 additions and 559 deletions

View file

@ -265,7 +265,7 @@ struct ParsedItemsAndViewItems {
pub fn Parser(sess: @mut ParseSess,
cfg: ast::CrateConfig,
rdr: @reader)
rdr: @mut reader)
-> Parser {
let tok0 = rdr.next_token();
let interner = get_ident_interner();
@ -315,7 +315,7 @@ pub struct Parser {
tokens_consumed: @mut uint,
restriction: @mut restriction,
quote_depth: @mut uint, // not (yet) related to the quasiquoter
reader: @reader,
reader: @mut reader,
interner: @token::ident_interner,
/// The set of seen errors about obsolete syntax. Used to suppress
/// extra detail when the same error is seen twice