about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-13 21:28:09 +0100
committerGitHub <noreply@github.com>2020-02-13 21:28:09 +0100
commitc8343b8653cdb0fb6cabf588ddee2fef07635b35 (patch)
tree5198234d42056f95fe575335e61137dbd49f1c93 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent8e2772c0fdab55695d0a607f50e7deaa329e7189 (diff)
parent10f342abae4e9aafb02c3adaaa050f43eb0e2dd0 (diff)
downloadrust-c8343b8653cdb0fb6cabf588ddee2fef07635b35.tar.gz
rust-c8343b8653cdb0fb6cabf588ddee2fef07635b35.zip
Rollup merge of #69126 - RalfJung:exact-div, r=oli-obk
miri: fix exact_div

Turns out `exact_div` was relying on the broken behavior of `Rem` for `int_min % -1` that was fixed in https://github.com/rust-lang/rust/pull/69002. This PR fixes `exact_div`.

Inside rustc, `exact_div` is only used in a single place where the divisor is always positive (in `ptr_offset_from`), so we cannot test the fix in rustc. The Miri test suite covers this through the `exact_div` intrinsic, though (and it is how I found out).

One step to https://github.com/rust-lang/rust/issues/69117 (then we also need to address build failures introduced by https://github.com/rust-lang/rust/pull/68969)

r? @oli-obk
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions