We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tcx.hir()
1 parent cfeefb1 commit 9509ff4Copy full SHA for 9509ff4
compiler/rustc_middle/src/hir/map/mod.rs
@@ -57,6 +57,10 @@ fn is_body_owner(node: Node<'_>, hir_id: HirId) -> bool {
57
}
58
59
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).
64
#[derive(Copy, Clone)]
65
pub struct Map<'hir> {
66
pub(super) tcx: TyCtxt<'hir>,
0 commit comments