]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/check_unused.rs
Rename `Item.node` to `Item.kind`
[rust.git] / src / librustc_resolve / check_unused.rs
index 0d85be83e12e04d437889a85fdf594ddd81fae87..737589acf8d8146fece502646e89af09d8b2230e 100644 (file)
@@ -103,7 +103,7 @@ fn visit_item(&mut self, item: &'a ast::Item) {
         // whether they're used or not. Also ignore imports with a dummy span
         // because this means that they were generated in some fashion by the
         // compiler and we don't need to consider them.
-        if let ast::ItemKind::Use(..) = item.node {
+        if let ast::ItemKind::Use(..) = item.kind {
             if item.vis.node.is_pub() || item.span.is_dummy() {
                 return;
             }