diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-10-21 22:00:32 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-07 10:37:12 -0500 |
| commit | 67d0db6b008f98c1a1ba8ed6c267105433250fc9 (patch) | |
| tree | 9ee22c1d8d10686e4333584654b0e8fc41a21682 /src/test/codegen/src-hash-algorithm | |
| parent | dc06a36074f04c6a77b5834f2950011d49607898 (diff) | |
| download | rust-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
