Skip to content

Commit 27abd52

Browse files
committed
Fix operator precedence
1 parent b9d12ed commit 27abd52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/tokenstream.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ impl TokenStream {
181181
(_, (TokenTree::Token(_, token::Token::Comma), _)) => continue,
182182
((TokenTree::Token(sp, token_left), NonJoint),
183183
(TokenTree::Token(_, token_right), _))
184-
if token_left.is_ident() || token_left.is_lit() &&
185-
token_right.is_ident() || token_right.is_lit() => *sp,
184+
if (token_left.is_ident() || token_left.is_lit()) &&
185+
(token_right.is_ident() || token_right.is_lit()) => *sp,
186186
((TokenTree::Delimited(sp, ..), NonJoint), _) => sp.entire(),
187187
_ => continue,
188188
};

0 commit comments

Comments
 (0)