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-07-03 20:22:18 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-07-03 22:14:00 +0200
commita8ab02c4641de4e3ec634b3479fddb60e4ad7763 (patch)
treea6ec346ca3f015191e64a460af4c3c2f8e921f0c /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
parent83148cb28343bf15ed469f946915c73deeaa9a28 (diff)
downloadrust-a8ab02c4641de4e3ec634b3479fddb60e4ad7763.tar.gz
rust-a8ab02c4641de4e3ec634b3479fddb60e4ad7763.zip
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.
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions