From f3eee0ebada8e67dbba6574567456a9f1a946d28 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 2 Jan 2014 12:30:58 -0800 Subject: libsyntax: Fix test and merge fallout. --- src/libsyntax/parse/mod.rs | 2 +- src/libsyntax/parse/parser.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 746e3279f19..5a8444518aa 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -635,7 +635,7 @@ mod test { } #[test] fn parse_ident_pat () { - let parser = string_to_parser(@"b"); + let mut parser = string_to_parser(@"b"); assert_eq!(parser.parse_pat(), @ast::Pat{id: ast::DUMMY_NODE_ID, node: ast::PatIdent( diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 80072cc4a4e..2428710087f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4442,12 +4442,12 @@ impl Parser { } - if *self.token == token::LPAREN { + if self.token == token::LPAREN { // `extern mod foo (name = "bar"[,vers = "version"]) is obsolete, // `extern mod foo = "bar#[version]";` should be used. // Parse obsolete options to avoid wired parser errors self.parse_optional_meta(); - self.obsolete(*self.span, ObsoleteExternModAttributesInParens); + self.obsolete(self.span, ObsoleteExternModAttributesInParens); } // extern mod foo; self.expect(&token::SEMI); -- cgit 1.4.1-3-g733a5