diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-19 06:57:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-19 06:57:32 +0100 |
| commit | 5570a2374f1b50b1fb85ed247fcec8161eeb2530 (patch) | |
| tree | 4fc464ac8c09ee54a3e3c0daf5ece60487743edb /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 61fe2e4036cb8917372e42df66c54596a05d69b7 (diff) | |
| parent | 38fa3783ce635814b7e3814ab26d52b653fc0ab0 (diff) | |
| download | rust-5570a2374f1b50b1fb85ed247fcec8161eeb2530.tar.gz rust-5570a2374f1b50b1fb85ed247fcec8161eeb2530.zip | |
Rollup merge of #69814 - jonas-schievink:gen-ret-unw, r=Zoxc
Smaller and more correct generator codegen This removes unnecessary panicking branches in the resume function when the generator can not return or unwind, respectively. Closes https://github.com/rust-lang/rust/issues/66100 It also addresses the correctness concerns wrt poisoning on unwind. These are not currently a soundness issue because any operation *inside* a generator that could possibly unwind will result in a cleanup path for dropping it, ultimately reaching a `Resume` terminator, which we already handled correctly. Future MIR optimizations might optimize that out, though. r? @Zoxc
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
