Rename Item.node to Item.kind

This commit is contained in:
varkor 2019-09-26 17:51:36 +01:00
parent 21bf983acb
commit 7bc94cc3c2
99 changed files with 279 additions and 278 deletions

View file

@ -15,7 +15,7 @@ struct RegistrarFinder {
impl<'v> ItemLikeVisitor<'v> for RegistrarFinder {
fn visit_item(&mut self, item: &hir::Item) {
if let hir::ItemKind::Fn(..) = item.node {
if let hir::ItemKind::Fn(..) = item.kind {
if attr::contains_name(&item.attrs, sym::plugin_registrar) {
self.registrars.push((item.hir_id, item.span));
}