diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2018-04-06 00:34:45 -0700 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-08-29 10:10:58 +0200 |
| commit | 911d35f0bfd207112806eaec2763201dad06d1c7 (patch) | |
| tree | c9a97932703a7bb1e6b2886c8e7f428d9a03df7d /src/rustllvm/RustWrapper.cpp | |
| parent | 29e6aabcebe3bdb507df22a6233024711412b343 (diff) | |
| download | rust-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
