diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-09 12:52:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-09 12:52:05 +0200 |
| commit | dfb4194e3b01479c80f32586043264abd86fb1ab (patch) | |
| tree | b227234a9517a6c5ae676079b8805e6158d4d77a /library/std/src/sys/unix/stdio.rs | |
| parent | 24fa80dbb2069fb62f55b95ff83bd4ae29c35f6f (diff) | |
| parent | 38004b72bcfc1ec1892c3186b2627067de6414c1 (diff) | |
| download | rust-dfb4194e3b01479c80f32586043264abd86fb1ab.tar.gz rust-dfb4194e3b01479c80f32586043264abd86fb1ab.zip | |
Rollup merge of #95785 - RalfJung:interpret-size-mismatch, r=oli-obk
interpret: err instead of ICE on size mismatches in to_bits_or_ptr_internal We did this a while ago already for `to_i32()` and friends, but missed this one. That became quite annoying when I was debugging an ICE caused by `read_pointer` in a Miri shim where the code was passing an argument at the wrong type. Having `scalar_to_ptr` be fallible is consistent with all the other `Scalar::to_*` methods being fallible. I added `unwrap` only in code outside the interpreter, which is no worse off than before now in terms of panics. r? ````@oli-obk````
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
0 files changed, 0 insertions, 0 deletions
