about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-12-14 10:47:10 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-12-15 10:59:32 +1100
commit315c0cf358b69fb2dd799025f682404a9a083d62 (patch)
treeb638c898712e7ca997ad14fb295ee09f4a1faa74 /compiler/rustc_pattern_analysis/src
parent87cffb237774010e5761a07d884419e8993b2f45 (diff)
downloadrust-315c0cf358b69fb2dd799025f682404a9a083d62.tar.gz
rust-315c0cf358b69fb2dd799025f682404a9a083d62.zip
coverage: Simplify parts of `InstrumentCoverage::run_pass`
Changes in this patch:
  - Extract local variable `def_id`
  - Check `is_fn_like` without retrieving HIR
  - Inline some locals that are used once and aren't needed for clarity
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions