libsyntax: De-@mut Parser::obsolete_set

This commit is contained in:
Patrick Walton 2013-12-30 15:36:23 -08:00
parent 4ee95cf96c
commit e0a5460e94

View file

@ -316,7 +316,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
tokens_consumed: 0, tokens_consumed: 0,
restriction: UNRESTRICTED, restriction: UNRESTRICTED,
quote_depth: 0, quote_depth: 0,
obsolete_set: @mut HashSet::new(), obsolete_set: HashSet::new(),
mod_path_stack: @mut ~[], mod_path_stack: @mut ~[],
open_braces: @mut ~[], open_braces: @mut ~[],
non_copyable: util::NonCopyable non_copyable: util::NonCopyable
@ -345,7 +345,7 @@ pub struct Parser {
interner: @token::ident_interner, interner: @token::ident_interner,
/// The set of seen errors about obsolete syntax. Used to suppress /// The set of seen errors about obsolete syntax. Used to suppress
/// extra detail when the same error is seen twice /// extra detail when the same error is seen twice
obsolete_set: @mut HashSet<ObsoleteSyntax>, obsolete_set: HashSet<ObsoleteSyntax>,
/// Used to determine the path to externally loaded source files /// Used to determine the path to externally loaded source files
mod_path_stack: @mut ~[@str], mod_path_stack: @mut ~[@str],
/// Stack of spans of open delimiters. Used for error message. /// Stack of spans of open delimiters. Used for error message.