1
Fork 0

Avoid Token::{OpenDelim, CloseDelim}.

This commit is contained in:
Jeffrey Seyfried 2017-01-28 06:19:06 +00:00
parent 8c4960bfde
commit 2471888033
2 changed files with 23 additions and 17 deletions

View file

@ -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);