]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/late/diagnostics.rs
Rename `Ty.node` to `Ty.kind`
[rust.git] / src / librustc_resolve / late / diagnostics.rs
index e04e56cb945af8bd4eb535f2f202b954b7a706e8..0d35cc53ac6f38037ad162ccf5c7389f7c43c013 100644 (file)
@@ -472,7 +472,7 @@ fn lookup_assoc_candidate<FilterFn>(&mut self,
         where FilterFn: Fn(Res) -> bool
     {
         fn extract_node_id(t: &Ty) -> Option<NodeId> {
-            match t.node {
+            match t.kind {
                 TyKind::Path(None, _) => Some(t.id),
                 TyKind::Rptr(_, ref mut_ty) => extract_node_id(&mut_ty.ty),
                 // This doesn't handle the remaining `Ty` variants as they are not