about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-10-21 22:00:32 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-11-07 10:37:12 -0500
commit67d0db6b008f98c1a1ba8ed6c267105433250fc9 (patch)
tree9ee22c1d8d10686e4333584654b0e8fc41a21682 /src/test/codegen/src-hash-algorithm
parentdc06a36074f04c6a77b5834f2950011d49607898 (diff)
downloadrust-67d0db6b008f98c1a1ba8ed6c267105433250fc9.tar.gz
rust-67d0db6b008f98c1a1ba8ed6c267105433250fc9.zip
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions