summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-01-28 06:19:06 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-02-28 22:13:39 +0000
commit247188803356234ae5d6ecf947ffb2308688dc90 (patch)
tree0153f68fc9c827674a2d6fbdca15d76c07e61567 /src/libsyntax/parse
parent8c4960bfde5c18d119f5d6398bbca04640298164 (diff)
downloadrust-247188803356234ae5d6ecf947ffb2308688dc90.tar.gz
rust-247188803356234ae5d6ecf947ffb2308688dc90.zip
Avoid `Token::{OpenDelim, CloseDelim}`.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index b5b8a6bc0ef..3a3c20dfb64 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2694,7 +2694,7 @@ impl<'a> Parser<'a> {
         // yet.
         match self.token {
             token::OpenDelim(delim) => {
-                if self.quote_depth == 0 && self.tts.last().map(|&(_, i)| i == 1).unwrap_or(false) {
+                if self.quote_depth == 0 {
                     let tt = self.tts.pop().unwrap().0;
                     self.bump();
                     return Ok(tt);