impl Clean<Lifetime> for hir::Lifetime {
fn clean(&self, cx: &DocContext) -> Lifetime {
- let def = cx.tcx.named_region_map.defs.get(&self.id).cloned();
+ let hir_id = cx.tcx.hir.node_to_hir_id(self.id);
+ let def = cx.tcx.named_region(hir_id);
match def {
Some(rl::Region::EarlyBound(_, node_id)) |
Some(rl::Region::LateBound(_, node_id)) |