ItemKind
This commit is contained in:
parent
7e5d224472
commit
5b0cf56f32
61 changed files with 693 additions and 693 deletions
|
@ -706,7 +706,7 @@ impl<'a, 'hir> intravisit::Visitor<'hir> for HirCollector<'a, 'hir> {
|
|||
}
|
||||
|
||||
fn visit_item(&mut self, item: &'hir hir::Item) {
|
||||
let name = if let hir::ItemImpl(.., ref ty, _) = item.node {
|
||||
let name = if let hir::ItemKind::Impl(.., ref ty, _) = item.node {
|
||||
self.map.node_to_pretty_string(ty.id)
|
||||
} else {
|
||||
item.name.to_string()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue