hir: remove NodeId from Lifetime and Ty

This commit is contained in:
ljedrz
2019-02-18 10:59:17 +01:00
parent 904a91c496
commit 00b74e5eaf
13 changed files with 71 additions and 82 deletions

View File

@@ -868,7 +868,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::ItemKind::Impl(.., ref ty, _) = item.node {
self.map.node_to_pretty_string(ty.id)
self.map.hir_to_pretty_string(ty.hir_id)
} else {
item.ident.to_string()
};