diff --git a/src/librustc/hir/map/definitions.rs b/src/librustc/hir/map/definitions.rs index b4bda36bc8a27..9e7898e10b011 100644 --- a/src/librustc/hir/map/definitions.rs +++ b/src/librustc/hir/map/definitions.rs @@ -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 { if def_id.krate == LOCAL_CRATE { diff --git a/src/librustc/hir/map/mod.rs b/src/librustc/hir/map/mod.rs index 037d04a5d8ed3..49a1386e3c113 100644 --- a/src/librustc/hir/map/mod.rs +++ b/src/librustc/hir/map/mod.rs @@ -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(|| { @@ -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 { let node_id = self.hir_to_node_id(hir_id); @@ -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 { self.definitions.as_local_hir_id(def_id)