diff options
| author | varkor <github@varkor.com> | 2019-09-26 14:39:48 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-26 18:21:09 +0100 |
| commit | 95f6d72a60461a4a432d7e8971bb6a1899456b56 (patch) | |
| tree | df668b1056098eb4f00c2426136aecb3c51f1936 /src/libsyntax/util/parser.rs | |
| parent | ddf43867a9cbb3766b48552632a602498fae2699 (diff) | |
| download | rust-95f6d72a60461a4a432d7e8971bb6a1899456b56.tar.gz rust-95f6d72a60461a4a432d7e8971bb6a1899456b56.zip | |
Rename `Expr.node` to `Expr.kind`
For both `ast::Expr` and `hir::Expr`.
Diffstat (limited to 'src/libsyntax/util/parser.rs')
| -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 fceaed360cd..982755e8680 100644 --- a/src/libsyntax/util/parser.rs +++ b/src/libsyntax/util/parser.rs @@ -375,7 +375,7 @@ crate fn needs_par_as_let_scrutinee(order: i8) -> bool { /// parens or other delimiters, e.g., `X { y: 1 }`, `X { y: 1 }.method()`, `foo == X { y: 1 }` and /// `X { y: 1 } == foo` all do, but `(X { y: 1 }) == foo` does not. pub fn contains_exterior_struct_lit(value: &ast::Expr) -> bool { - match value.node { + match value.kind { ast::ExprKind::Struct(..) => true, ast::ExprKind::Assign(ref lhs, ref rhs) | |
