diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-01-02 12:30:58 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-01-02 14:42:06 -0800 |
| commit | f3eee0ebada8e67dbba6574567456a9f1a946d28 (patch) | |
| tree | 1eecb3b75809697167136ea1c451ba38ac2651fe /src/libsyntax/parse | |
| parent | 8b088d493cdb38f47cd548469554e772d0331628 (diff) | |
| download | rust-f3eee0ebada8e67dbba6574567456a9f1a946d28.tar.gz rust-f3eee0ebada8e67dbba6574567456a9f1a946d28.zip | |
libsyntax: Fix test and merge fallout.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
2 files changed, 3 insertions, 3 deletions
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); |
