Skip to content

Commit d5fde83

Browse files
committed
Auto merge of #29807 - nrc:op_span, r=brson
cc @nagisa
2 parents 5a87288 + 224c789 commit d5fde83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2699,9 +2699,9 @@ impl<'a> Parser<'a> {
26992699
// Semi-statement forms are odd. See https://github.com/rust-lang/rust/issues/29071
27002700
return Ok(lhs);
27012701
}
2702-
let cur_op_span = self.span;
27032702
self.expected_tokens.push(TokenType::Operator);
27042703
while let Some(op) = AssocOp::from_token(&self.token) {
2704+
let cur_op_span = self.span;
27052705
let restrictions = if op.is_assign_like() {
27062706
self.restrictions & Restrictions::RESTRICTION_NO_STRUCT_LITERAL
27072707
} else {

0 commit comments

Comments
 (0)