diff options
| author | bors <bors@rust-lang.org> | 2014-05-21 23:31:27 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-21 23:31:27 -0700 |
| commit | 22e2204c3d6f09f5bd1311d1d0a7b086e19b1b96 (patch) | |
| tree | 24050eb1a17dbacd0806c20913fe3106b2cb97a3 /src/libsyntax | |
| parent | f78eb1434152224dae7d0f48528b5b0c064e9bc6 (diff) | |
| parent | 0d4b840523824252be67d191cc0945c5713ea47c (diff) | |
auto merge of #14321 : alexcrichton/rust/ices, r=pcwalton
Also adding tests for fixed ICEs
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index c42febcd607..5829f63b2c5 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2920,7 +2920,7 @@ impl<'a> Parser<'a> { _ => {} } - if !is_ident_or_path(&self.token) + if (!is_ident_or_path(&self.token) && self.token != token::MOD_SEP) || self.is_keyword(keywords::True) || self.is_keyword(keywords::False) { // Parse an expression pattern or exp .. exp. |
