diff options
| author | varkor <github@varkor.com> | 2019-12-22 21:08:53 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-12-23 11:20:13 +0000 |
| commit | 35979a92bf6dba402885a1488ecfd84046e4bd71 (patch) | |
| tree | 7d58702befa5cd9f8ffffa0222f3615978503520 /src/libsyntax/util | |
| parent | 5ab4735559aeeece0b5811dad95fdf515b1bcfbd (diff) | |
| download | rust-35979a92bf6dba402885a1488ecfd84046e4bd71.tar.gz rust-35979a92bf6dba402885a1488ecfd84046e4bd71.zip | |
Add span information to `ExprKind::Assign`
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser.rs b/src/libsyntax/util/parser.rs index 88e3d8daf70..98af382efb0 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -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 } |
