Rename Item.node to Item.kind
This commit is contained in:
parent
21bf983acb
commit
7bc94cc3c2
99 changed files with 279 additions and 278 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue