about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2018-04-06 00:34:45 -0700
committerRalf Jung <post@ralfj.de>2018-08-29 10:10:58 +0200
commit911d35f0bfd207112806eaec2763201dad06d1c7 (patch)
treec9a97932703a7bb1e6b2886c8e7f428d9a03df7d /src/rustllvm/RustWrapper.cpp
parent29e6aabcebe3bdb507df22a6233024711412b343 (diff)
downloadrust-911d35f0bfd207112806eaec2763201dad06d1c7.tar.gz
rust-911d35f0bfd207112806eaec2763201dad06d1c7.zip
Rewrite docs for `std::ptr`
- Add links to the GNU libc docs for `memmove`, `memcpy`, and
  `memset`, as well as internally linking to other functions in `std::ptr`
- List invariants which, when violated, cause UB for all functions
- Add example to `ptr::drop_in_place` and compares it to `ptr::read`.
- Add examples which more closely mirror real world uses for the
  functions in `std::ptr`. Also, move the reimplementation of `mem::swap`
  to the examples of `ptr::read` and use a more interesting example for
  `copy_nonoverlapping`.
- Change module level description
- Define what constitutes a "valid" pointer.
- Centralize discussion of ownership of bitwise copies in `ptr::read` and
  provide an example.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions