Skip to content

Commit

Permalink
remove FIXMEs for functions that won't go away
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Jul 4, 2019
1 parent b43eb42 commit 7987719
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/librustc/hir/map/definitions.rs
Expand Up @@ -371,7 +371,6 @@ impl Definitions {
None
}

// FIXME(@ljedrz): replace the NodeId variant
#[inline]
pub fn as_local_hir_id(&self, def_id: DefId) -> Option<hir::HirId> {
if def_id.krate == LOCAL_CRATE {
Expand Down
3 changes: 0 additions & 3 deletions src/librustc/hir/map/mod.rs
Expand Up @@ -239,7 +239,6 @@ impl<'hir> Map<'hir> {
})
}

// FIXME(@ljedrz): replace the `NodeId` variant.
#[inline]
pub fn local_def_id_from_hir_id(&self, hir_id: HirId) -> DefId {
self.opt_local_def_id_from_hir_id(hir_id).unwrap_or_else(|| {
Expand All @@ -248,7 +247,6 @@ impl<'hir> Map<'hir> {
})
}

// FIXME(@ljedrz): replace the `NodeId` variant.
#[inline]
pub fn opt_local_def_id_from_hir_id(&self, hir_id: HirId) -> Option<DefId> {
let node_id = self.hir_to_node_id(hir_id);
Expand All @@ -265,7 +263,6 @@ impl<'hir> Map<'hir> {
self.definitions.as_local_node_id(def_id)
}

// FIXME(@ljedrz): replace the `NodeId` variant.
#[inline]
pub fn as_local_hir_id(&self, def_id: DefId) -> Option<HirId> {
self.definitions.as_local_hir_id(def_id)
Expand Down

0 comments on commit 7987719

Please sign in to comment.