File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ For more detailed information, check out the [chapter on identifiers][ids].
84
84
### The HIR Map
85
85
86
86
Most of the time when you are working with the HIR, you will do so via
87
- the ** HIR Map** , accessible in the tcx via [ ` tcx.hir_map ` ] (and defined in
87
+ the ** HIR Map** , accessible in the tcx via [ ` tcx.hir() ` ] (and defined in
88
88
the [ ` hir::map ` ] module). The [ HIR map] contains a [ number of methods] to
89
89
convert between IDs of various kinds and to lookup data associated
90
90
with an HIR node.
91
91
92
- [ `tcx.hir_map ` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/ struct.GlobalCtxt .html#structfield.hir_map
92
+ [ `tcx.hir() ` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TyCtxt .html#method.hir
93
93
[ `hir::map` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/index.html
94
94
[ HIR map ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html
95
95
[ number of methods ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html#methods
You can’t perform that action at this time.
0 commit comments