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].
8484### The HIR Map
8585
8686Most 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
8888the [ ` hir::map ` ] module). The [ HIR map] contains a [ number of methods] to
8989convert between IDs of various kinds and to lookup data associated
9090with an HIR node.
9191
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
9393[ `hir::map` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/index.html
9494[ HIR map ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/hir/map/struct.Map.html
9595[ 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