]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/mut_visit.rs
Rename `Ty.node` to `Ty.kind`
[rust.git] / src / libsyntax / mut_visit.rs
index 3e2a1fa6a807704150957b02e557e01f63215081..c08e154e0450783437df1f1f191d1ede436d6eb6 100644 (file)
@@ -432,9 +432,9 @@ pub fn noop_visit_ty_constraint<T: MutVisitor>(
 }
 
 pub fn noop_visit_ty<T: MutVisitor>(ty: &mut P<Ty>, vis: &mut T) {
-    let Ty { id, node, span } = ty.deref_mut();
+    let Ty { id, kind, span } = ty.deref_mut();
     vis.visit_id(id);
-    match node {
+    match kind {
         TyKind::Infer | TyKind::ImplicitSelf | TyKind::Err |
             TyKind::Never | TyKind::CVarArgs => {}
         TyKind::Slice(ty) => vis.visit_ty(ty),