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:
authorJason Newcomb <jsnewcomb@pm.me>2025-07-14 08:33:27 +0000
committerGitHub <noreply@github.com>2025-07-14 08:33:27 +0000
commit1c64211aee1daca8b039ebc62bda1737c1ef3531 (patch)
tree5e5548b3c17eef9ac95633729425a80d0af14fcf /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
parentba947c572886cfeca8109b980828b6c676cef717 (diff)
parenta8ab02c4641de4e3ec634b3479fddb60e4ad7763 (diff)
downloadrust-1c64211aee1daca8b039ebc62bda1737c1ef3531.tar.gz
rust-1c64211aee1daca8b039ebc62bda1737c1ef3531.zip
Fix manual is multiple of (#15205)
Fix several issues with `manual_is_multiple_of`

- `&a % &b == 0` compiles, but requires dereferencing `b` when replacing
with `a.is_multiple_of(b)`.
- In `a % b == 0`, if type of `a` is not certain, `a.is_multiple_of(b)`
might not be typable.
- In `a % b == 0`, `a` and `b` must be unsigned integers, not any
arbitrary types implementing `Rem` and outputing an integer.

Those fixes have required increasing the precision of type certainty
determination in the two first patches.

Fixes rust-lang/rust-clippy#15203
Fixes rust-lang/rust-clippy#15204

changelog: [`manual_is_multiple_of`]: fix various false positive
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions