Skip to content

Commit

Permalink
cleanup: remove hir_path_str
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Feb 9, 2019
1 parent 3a1a704 commit eb669b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/librustc/ty/item_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
self.item_path_str(self.hir().local_def_id(id))
}

// FIXME(@ljedrz): replace the NodeId variant
pub fn hir_path_str(self, id: hir::HirId) -> String {
self.item_path_str(self.hir().local_def_id_from_hir_id(id))
}

/// Returns a string identifying this def-id. This string is
/// suitable for user output. It always begins with a crate identifier.
pub fn absolute_item_path_str(self, def_id: DefId) -> String {
Expand Down

0 comments on commit eb669b3

Please sign in to comment.