diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-25 19:28:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 19:28:08 +0100 |
| commit | 97f0a9ef8d3a563eeae1966ff5549400783d8e1f (patch) | |
| tree | 7a59fa534aabe9993c1f11ba6136d4f550bb2fdf /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 3c1d9adb3cb3aad4233075fa296fc3c70b42cdb8 (diff) | |
| parent | 7400955e941a3958b1560f2cb0b7648535d2f9d0 (diff) | |
| download | rust-97f0a9ef8d3a563eeae1966ff5549400783d8e1f.tar.gz rust-97f0a9ef8d3a563eeae1966ff5549400783d8e1f.zip | |
Rollup merge of #70226 - RalfJung:checked, r=oli-obk
use checked casts and arithmetic in Miri engine This is unfortunately pretty annoying because we have to cast back and forth between `u64` and `usize` more often that should be necessary, and that cast is considered fallible. For example, should [this](https://doc.rust-lang.org/nightly/nightly-rustc/rustc/mir/interpret/value/enum.ConstValue.html) really be `usize`? Also, `LayoutDetails` uses `usize` for field indices, but in Miri we use `u64` to be able to also handle array indexing. Maybe methods like `mplace_field` should be suitably generalized to accept both `u64` and `usize`? r? @oli-obk Cc @eddyb
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
