diff options
| author | Amanda Stjerna <amanda.stjerna@it.uu.se> | 2024-02-06 13:07:51 +0100 |
|---|---|---|
| committer | Amanda Stjerna <amanda.stjerna@it.uu.se> | 2024-02-06 13:33:09 +0100 |
| commit | ad3d04c55ec4cbd924b3f7e3a890483b6eb1604d (patch) | |
| tree | 77ae0e79bc00a0e6cba05dc50e1ae8fa55536302 /compiler/rustc_hir_analysis/src/structured_errors.rs | |
| parent | 94df917a74d649270b6633d586ed117b84696836 (diff) | |
| download | rust-ad3d04c55ec4cbd924b3f7e3a890483b6eb1604d.tar.gz rust-ad3d04c55ec4cbd924b3f7e3a890483b6eb1604d.zip | |
A drive-by rewrite of give_region_a_name()
This rewrite makes the cache-updating nature of the function slightly clearer, using the Entry API into the hash table for region names to capture the update-insert nature of the method. May be marginally more efficient since it only runtime-borrows the map once, but in this context the performance impact is almost certainly completely negligible.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors.rs')
0 files changed, 0 insertions, 0 deletions
