rust/src/librustc/hir
bors 4314dbaa76 Auto merge of #58090 - ljedrz:HirIdification_phase_2, r=Zoxc
HirIdification: add key HirId methods

This is another PR in a series dedicated to `HirId`-ification, i.e. deprecating `ast::NodeId`s after the AST > HIR lowering process. The bigger proof of concept can be seen in #57578.

**Phase 2**: add key `HirId` methods mirroring the `NodeId` ones.

These should be counterparts of the most widely used `Hir` methods using `NodeId`s. Note that this expands `hir::map::Definitions` with an additional `hir_to_def_index` map (with the intention of later removing `node_to_def_index`).

As a bonus there is also a small cleanup commit removing unnecessary calls to `node_to_hir_id` where `HirId` is already available.

r? @Zoxc
Cc @varkor
2019-02-04 01:06:25 +00:00
..
map hir: remove Definitions::hir_to_def_index 2019-02-03 22:27:52 +01:00
check_attr.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
def_id.rs Auto merge of #51487 - Zoxc:incr-passes, r=michaelwoerister 2019-01-13 19:43:46 +00:00
def.rs Update visibility of intermediate use items. 2019-02-02 15:29:13 +01:00
intravisit.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
itemlikevisit.rs Remove licenses 2018-12-25 21:08:33 -07:00
lowering.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
mod.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
pat_util.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00
print.rs hir: add HirId to main Hir nodes 2019-02-02 17:35:20 +01:00