about summary refs log tree commit diff
path: root/src/libsyntax/feature_gate
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2019-09-26 17:25:31 +0100
committervarkor <github@varkor.com>2019-09-26 18:21:10 +0100
commitc3d8791373005ef08c876aa649ede245efd2352d (patch)
treed60090ad10eecda23484b9c922288929dcb81cd6 /src/libsyntax/feature_gate
parentd4573c9c1e8118be5ffc662c6a64db329db0a245 (diff)
downloadrust-c3d8791373005ef08c876aa649ede245efd2352d.tar.gz
rust-c3d8791373005ef08c876aa649ede245efd2352d.zip
Rename `Ty.node` to `Ty.kind`
Diffstat (limited to 'src/libsyntax/feature_gate')
-rw-r--r--src/libsyntax/feature_gate/check.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/feature_gate/check.rs b/src/libsyntax/feature_gate/check.rs
index b041c2d46a1..1729ae7eae8 100644
--- a/src/libsyntax/feature_gate/check.rs
+++ b/src/libsyntax/feature_gate/check.rs
@@ -432,7 +432,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
     }
 
     fn visit_ty(&mut self, ty: &'a ast::Ty) {
-        match ty.node {
+        match ty.kind {
             ast::TyKind::BareFn(ref bare_fn_ty) => {
                 self.check_abi(bare_fn_ty.abi, ty.span);
             }
@@ -447,7 +447,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
 
     fn visit_fn_ret_ty(&mut self, ret_ty: &'a ast::FunctionRetTy) {
         if let ast::FunctionRetTy::Ty(ref output_ty) = *ret_ty {
-            if let ast::TyKind::Never = output_ty.node {
+            if let ast::TyKind::Never = output_ty.kind {
                 // Do nothing.
             } else {
                 self.visit_ty(output_ty)