Skip to content

Commit

Permalink
Fix operator precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Mar 13, 2019
1 parent b9d12ed commit 27abd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsyntax/tokenstream.rs
Expand Up @@ -181,8 +181,8 @@ impl TokenStream {
(_, (TokenTree::Token(_, token::Token::Comma), _)) => continue,
((TokenTree::Token(sp, token_left), NonJoint),
(TokenTree::Token(_, token_right), _))
if token_left.is_ident() || token_left.is_lit() &&
token_right.is_ident() || token_right.is_lit() => *sp,
if (token_left.is_ident() || token_left.is_lit()) &&
(token_right.is_ident() || token_right.is_lit()) => *sp,
((TokenTree::Delimited(sp, ..), NonJoint), _) => sp.entire(),
_ => continue,
};
Expand Down

0 comments on commit 27abd52

Please sign in to comment.