Skip to content

Commit

Permalink
Auto merge of #29807 - nrc:op_span, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Nov 12, 2015
2 parents 5a87288 + 224c789 commit d5fde83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2699,9 +2699,9 @@ impl<'a> Parser<'a> {
// Semi-statement forms are odd. See https://github.com/rust-lang/rust/issues/29071
return Ok(lhs);
}
let cur_op_span = self.span;
self.expected_tokens.push(TokenType::Operator);
while let Some(op) = AssocOp::from_token(&self.token) {
let cur_op_span = self.span;
let restrictions = if op.is_assign_like() {
self.restrictions & Restrictions::RESTRICTION_NO_STRUCT_LITERAL
} else {
Expand Down

0 comments on commit d5fde83

Please sign in to comment.