diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-05 13:13:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-05 13:13:08 +0200 |
| commit | 7e4ed72d64eb7a6bd6a05d4f3222aa43975898e1 (patch) | |
| tree | f41410f4fc699afc25c019cecbf8c78233a4234b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 7b657d340d715f48449189fea9d032350323a13f (diff) | |
| parent | 7e81c11aa8ddcebf64c01579754b44930ecf4d04 (diff) | |
| download | rust-7e4ed72d64eb7a6bd6a05d4f3222aa43975898e1.tar.gz rust-7e4ed72d64eb7a6bd6a05d4f3222aa43975898e1.zip | |
Rollup merge of #70558 - RalfJung:vec-extend-aliasing, r=Amanieu
Fix some aliasing issues in Vec `Vec::extend` and `Vec::truncate` invalidated references into the vector even without reallocation, because they (implicitly) created a mutable reference covering the *entire* initialized part of the vector. Fixes https://github.com/rust-lang/rust/issues/70301 I verified the fix by adding some new tests here that I ran in Miri.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
