Skip to content

Commit 75edbf4

Browse files
committed
libsyntax: De-@mut Parser::obsolete_set
1 parent 0ad82b8 commit 75edbf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ pub fn Parser(sess: @mut ParseSess, cfg: ast::CrateConfig, rdr: @mut reader)
316316
tokens_consumed: 0,
317317
restriction: UNRESTRICTED,
318318
quote_depth: 0,
319-
obsolete_set: @mut HashSet::new(),
319+
obsolete_set: HashSet::new(),
320320
mod_path_stack: @mut ~[],
321321
open_braces: @mut ~[],
322322
non_copyable: util::NonCopyable
@@ -345,7 +345,7 @@ pub struct Parser {
345345
interner: @token::ident_interner,
346346
/// The set of seen errors about obsolete syntax. Used to suppress
347347
/// extra detail when the same error is seen twice
348-
obsolete_set: @mut HashSet<ObsoleteSyntax>,
348+
obsolete_set: HashSet<ObsoleteSyntax>,
349349
/// Used to determine the path to externally loaded source files
350350
mod_path_stack: @mut ~[@str],
351351
/// Stack of spans of open delimiters. Used for error message.

0 commit comments

Comments
 (0)