Add span information to ExprKind::Assign

This commit is contained in:
varkor
2019-12-22 21:08:53 +00:00
parent 5ab4735559
commit 35979a92bf
25 changed files with 69 additions and 62 deletions

View File

@@ -378,7 +378,7 @@ pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool {
match value.kind {
ast::ExprKind::Struct(..) => true,
ast::ExprKind::Assign(ref lhs, ref rhs)
ast::ExprKind::Assign(ref lhs, ref rhs, _)
| ast::ExprKind::AssignOp(_, ref lhs, ref rhs)
| ast::ExprKind::Binary(_, ref lhs, ref rhs) => {
// X { y: 1 } + X { y: 2 }