X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_resolve%2Fcheck_unused.rs;h=737589acf8d8146fece502646e89af09d8b2230e;hb=7bc94cc3c2ccef8b4d393910bb978a6487db1202;hp=0d85be83e12e04d437889a85fdf594ddd81fae87;hpb=21bf983acbb5d7ac8fb9462cbf2cc4c280abd857;p=rust.git diff --git a/src/librustc_resolve/check_unused.rs b/src/librustc_resolve/check_unused.rs index 0d85be83e12..737589acf8d 100644 --- a/src/librustc_resolve/check_unused.rs +++ b/src/librustc_resolve/check_unused.rs @@ -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; }