diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-15 18:22:31 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-15 18:22:31 +0530 |
| commit | 8cc3fbd41dddbb11f442a17902cd0d276aa22566 (patch) | |
| tree | e161c7ec52efc9aad02a2ac2979b30b9aa606814 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 63091efa3bdcb18a6fac8af48acfa5634087624b (diff) | |
| parent | 7a52932f4cd65f57bcc8d77f12e32066b2a9c432 (diff) | |
| download | rust-8cc3fbd41dddbb11f442a17902cd0d276aa22566.tar.gz rust-8cc3fbd41dddbb11f442a17902cd0d276aa22566.zip | |
Rollup merge of #22218 - huonw:raw-docs, r=steveklabnik,huonw
This overhauls the very meager docs that currently exist to clarify
various understandable confusions that I've noticed, e.g. people look in
`std::raw` for the "real" types of slices like `&[T]`, or think that
`Slice<T>` refers to `[T]` (fixes #22214).
This patch takes the liberty of offering some "style" guidance around
`raw::Slice`, since there's more restricted ways to duplicate all
functionality connected to it: `std::slice::from_raw_parts{,_mut}` for
construction and `.as_{,mut_}ptr` & `.len` for deconstruction.
It also deprecates the `std::raw::Closure` type which is now useless for
non-type-erased closures, and replaced by `TraitObject` for `&Fn`, `&mut
FnMut` etc, so I guess it should be called a:
[breaking-change]
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
