diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-04-15 22:34:46 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-06-18 06:41:40 +0200 |
| commit | 15fc993775703c2151d4aa62bb484840aa560202 (patch) | |
| tree | 4d0c59c2b4442f182da5b8b6d3e4c72f1138a948 /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | d66e4f6a662346c17fd9461126704f096c2b6a3d (diff) | |
| download | rust-15fc993775703c2151d4aa62bb484840aa560202.tar.gz rust-15fc993775703c2151d4aa62bb484840aa560202.zip | |
Refactor `range_plus_one` and `range_minus_one` lints
Those lints share the detection logic structure, but differed, probably because of an oversight, in lint emission: only one of them would take care of emitting parentheses around the suggestion if required. Factor the code into one function which checks for the right condition and emits the lint in an identical way.
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
