about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-01-31 15:10:23 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-02-05 10:02:26 +1100
commitc3673868325f95203d5291f2fa3a399425c14876 (patch)
tree0b17b322a37c02d4adab5016170b851bcd91153d /tests/codegen/src-hash-algorithm
parent5dd0431386867a051f726cbba6e0f46f7bba5e5d (diff)
downloadrust-c3673868325f95203d5291f2fa3a399425c14876.tar.gz
rust-c3673868325f95203d5291f2fa3a399425c14876.zip
Refactor `emit_diagnostic`.
- Combine two different blocks involving
  `diagnostic.level.get_expectation_id()` into one.
- Combine several `if`s involving `diagnostic.level` into a single
  `match`.

This requires reordering some of the operations, but this has no
functional effect.
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions