rust/compiler/rustc_hir
Joshua Nelson 67d0db6b00 Fix handling of item names for HIR
- Handle variants, fields, macros in `Node::ident()`
- Handle the crate root in `opt_item_name`
- Factor out `item_name_from_def_id` to reduce duplication
- Look at HIR before the DefId for `opt_item_name`

  This gives accurate spans, which are not available from serialized
  metadata.

- Don't panic on the crate root in `opt_item_name`
- Add comments
2020-11-07 10:37:12 -05:00
..
src Fix handling of item names for HIR 2020-11-07 10:37:12 -05:00
Cargo.toml hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00