mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Fix operator precedence
This commit is contained in:
parent
b9d12edd6c
commit
27abd52170
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user