diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-09 14:41:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-09 14:41:50 +0100 |
| commit | df2281b058a0396f3e8775056f3173d3870fc7dd (patch) | |
| tree | d51738896190528431c507646c71deb3ee40956e /compiler/rustc_hir_analysis/src/structured_errors.rs | |
| parent | 46a0448405732b09d19e4ed53606bed240f882fa (diff) | |
| parent | 795be51dd931848b8cbf3dc84c526ca92634803c (diff) | |
| download | rust-df2281b058a0396f3e8775056f3173d3870fc7dd.tar.gz rust-df2281b058a0396f3e8775056f3173d3870fc7dd.zip | |
Rollup merge of #120704 - amandasystems:silly-region-name-rewrite, r=compiler-errors
A drive-by rewrite of `give_region_a_name()` This drive-by rewrite makes the cache-updating nature of the method 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 and indexes the map once, but in this context the performance impact is almost certainly completely negligible. Note that this commit should preserve all externally visible behaviour. Notably, it preserves the debug logging: 1. printing even in the case of a `None` for the new computed name, and 2. only printing on new values, begin silent on reused values
Diffstat (limited to 'compiler/rustc_hir_analysis/src/structured_errors.rs')
0 files changed, 0 insertions, 0 deletions
