about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-02-28 09:43:23 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-29 11:07:42 +1100
commit199be469ec37b30c876069762e20f531f1f12f22 (patch)
tree7cdb662b1c8dd485213b398ade2cfe29e39b25d0 /compiler/rustc_pattern_analysis/src
parent3fbdec4937a95a5af04186a799dc3b07840a4599 (diff)
downloadrust-199be469ec37b30c876069762e20f531f1f12f22.tar.gz
rust-199be469ec37b30c876069762e20f531f1f12f22.zip
Refactor `DiagCtxtInner::flush_delayed`.
This commit:
- Moves the ICE file create/open outside the loop. (Redoing it on every
  loop iteration works, but is really weird.)
- Moves the explanatory note emission above the loop, which removes the
  need for the `enumerate` call.
- Introduces a `decorate` local.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions