about summary refs log tree commit diff
path: root/src/libsyntax/parse/classify.rs
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-09-26 14:39:48 +0100
committervarkor <github@varkor.com>2019-09-26 18:21:09 +0100
commit95f6d72a60461a4a432d7e8971bb6a1899456b56 (patch)
treedf668b1056098eb4f00c2426136aecb3c51f1936 /src/libsyntax/parse/classify.rs
parentddf43867a9cbb3766b48552632a602498fae2699 (diff)
downloadrust-95f6d72a60461a4a432d7e8971bb6a1899456b56.tar.gz
rust-95f6d72a60461a4a432d7e8971bb6a1899456b56.zip
Rename `Expr.node` to `Expr.kind`
For both `ast::Expr` and `hir::Expr`.
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
-rw-r--r--src/libsyntax/parse/classify.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs
index 6ebfab3a133..44560688750 100644
--- a/src/libsyntax/parse/classify.rs
+++ b/src/libsyntax/parse/classify.rs
@@ -12,7 +12,7 @@ use crate::ast;
 ///      |x| 5
 /// isn't parsed as (if true {...} else {...} | x) | 5
 pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool {
-    match e.node {
+    match e.kind {
         ast::ExprKind::If(..) |
         ast::ExprKind::Match(..) |
         ast::ExprKind::Block(..) |