diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2020-08-28 10:23:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-28 10:23:59 +0200 |
| commit | be1b304ea4dec58255d76eca98442270ef17578a (patch) | |
| tree | c6b8141b6bcebf9f7874b258cee3f51c1fbd6170 /src/test/codegen/src-hash-algorithm | |
| parent | bc553136c731db2038c4a7ebf7cb37b94c962813 (diff) | |
| parent | 0cca5978a454fe7087d0182a8bfa1372a6aae320 (diff) | |
| download | rust-be1b304ea4dec58255d76eca98442270ef17578a.tar.gz rust-be1b304ea4dec58255d76eca98442270ef17578a.zip | |
Rollup merge of #75943 - elichai:2020-align_offset-docs, r=RalfJung
Fix potential UB in align_offset doc examples Currently it takes a pointer only to the first element in the array, this changes the code to take a pointer to the whole array. miri can't catch this right now because it later calls `x.len()` which re-tags the pointer for the whole array. https://github.com/rust-lang/miri/issues/1526#issuecomment-680897144
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
