Skip to content

Commit 9509ff4

Browse files
committed
Add FIXME for tcx.hir() returned type about its removal
1 parent cfeefb1 commit 9509ff4

File tree

1 file changed

+4
-0
lines changed
  • compiler/rustc_middle/src/hir/map

1 file changed

+4
-0
lines changed

compiler/rustc_middle/src/hir/map/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ fn is_body_owner(node: Node<'_>, hir_id: HirId) -> bool {
5757
}
5858
}
5959

60+
// FIXME: the structure was necessary in the past but now it
61+
// only serves as "namespace" for HIR-related methods, and can be
62+
// removed if all the methods are reasonably renamed and moved to tcx
63+
// (https://github.com/rust-lang/rust/pull/118256#issuecomment-1826442834).
6064
#[derive(Copy, Clone)]
6165
pub struct Map<'hir> {
6266
pub(super) tcx: TyCtxt<'hir>,

0 commit comments

Comments
 (0)