]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/coherence/inherent_impls.rs
Rename `Item.node` to `Item.kind`
[rust.git] / src / librustc_typeck / coherence / inherent_impls.rs
index e7c2126cfd7277e9c414ef8dca3c459c12b140ee..90cedb455e3dd11f8e30bf9b3338056ee7b4fd69 100644 (file)
@@ -49,7 +49,7 @@ struct InherentCollect<'tcx> {
 
 impl ItemLikeVisitor<'v> for InherentCollect<'tcx> {
     fn visit_item(&mut self, item: &hir::Item) {
-        let ty = match item.node {
+        let ty = match item.kind {
             hir::ItemKind::Impl(.., None, ref ty, _) => ty,
             _ => return
         };
@@ -57,7 +57,7 @@ fn visit_item(&mut self, item: &hir::Item) {
         let def_id = self.tcx.hir().local_def_id(item.hir_id);
         let self_ty = self.tcx.type_of(def_id);
         let lang_items = self.tcx.lang_items();
-        match self_ty.sty {
+        match self_ty.kind {
             ty::Adt(def, _) => {
                 self.check_def_id(item, def.did);
             }