diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2015-07-20 11:37:15 -0700 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2015-07-20 11:37:15 -0700 |
| commit | 7a47ffcbc73fa3bd02429c92841dcb0792a1f9b8 (patch) | |
| tree | c59cd46e5ef4994ea8c4a67b647ec42cb02767a1 /src | |
| parent | 99043dde9dd2d0507ad2e3cda65b9d3e9244f13f (diff) | |
| download | rust-7a47ffcbc73fa3bd02429c92841dcb0792a1f9b8.tar.gz rust-7a47ffcbc73fa3bd02429c92841dcb0792a1f9b8.zip | |
UB is src bzns
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/tarpl/vec-into-iter.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/tarpl/vec-into-iter.md b/src/doc/tarpl/vec-into-iter.md index 566cad75b51..0ffc23c4523 100644 --- a/src/doc/tarpl/vec-into-iter.md +++ b/src/doc/tarpl/vec-into-iter.md @@ -63,7 +63,7 @@ However because `offset` is marked as a GEP inbounds instruction, this will tell LLVM that ptr is allocated and won't alias other allocated memory. This is fine for zero-sized types, as they can't alias anything. However if we're using `heap::EMPTY` as a sentinel for a non-allocation for a *non-zero-sized* type, -this can cause undefined behaviour. Alas, we must therefore special case either +this can cause Undefined Behaviour. Alas, we must therefore special case either cap or len being 0 to not do the offset. So this is what we end up with for initialization: |
