about summary refs log tree commit diff
path: root/tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-23 22:01:42 +0000
committerGitHub <noreply@github.com>2025-08-23 22:01:42 +0000
commit35fb26f3472fcaff7bdfe6501cd996675c0f2835 (patch)
tree8cb42e828f77d7b669b9781ae2fd690f03d25fe3 /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
parent0744c8895ca55a530aff7e8505f996220fea54d1 (diff)
parentc9878185a87826b632920a4b1cb44a30685f81a9 (diff)
downloadrust-35fb26f3472fcaff7bdfe6501cd996675c0f2835.tar.gz
rust-35fb26f3472fcaff7bdfe6501cd996675c0f2835.zip
`get_diagnostic_item` in a bunch more places (#15519)
For https://github.com/rust-lang/rust-clippy/issues/7784

The first commit is for all the places with rather trivial changes:
- replacing nested `is_diagnostic_item` `if`s with a match on
`get_diagnostic_item`
- storing the result of `get_diagnostic_item` in a variable and reusing
it

The rest of commits are for more involved changes, and for places where
changing to `get_diagnostic_item` allowed further simplifications -- in
the latter case, the follow-up commits are marked as `misc: `

This is roughly one evening's worth of changes, so I hope the amount
won't be overwhelming^^

changelog: none
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions