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-04-05 13:13:08 +0200
committerGitHub <noreply@github.com>2020-04-05 13:13:08 +0200
commit7e4ed72d64eb7a6bd6a05d4f3222aa43975898e1 (patch)
treef41410f4fc699afc25c019cecbf8c78233a4234b /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent7b657d340d715f48449189fea9d032350323a13f (diff)
parent7e81c11aa8ddcebf64c01579754b44930ecf4d04 (diff)
downloadrust-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