]> 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 d2651317da948f069d7a05c9480ce62a2eac86d5..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
         };