We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 098ea17 commit 224c789Copy full SHA for 224c789
src/libsyntax/parse/parser.rs
@@ -2681,9 +2681,9 @@ impl<'a> Parser<'a> {
2681
// Semi-statement forms are odd. See https://github.com/rust-lang/rust/issues/29071
2682
return Ok(lhs);
2683
}
2684
- let cur_op_span = self.span;
2685
self.expected_tokens.push(TokenType::Operator);
2686
while let Some(op) = AssocOp::from_token(&self.token) {
+ let cur_op_span = self.span;
2687
let restrictions = if op.is_assign_like() {
2688
self.restrictions & Restrictions::RESTRICTION_NO_STRUCT_LITERAL
2689
} else {
0 commit comments