diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-12 22:50:44 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-02-14 11:32:08 +1100 |
| commit | 5e3ae102dbeeb646e8c7d2d423cea263337a76af (patch) | |
| tree | 657bb3fde66dac9b988de7dfe983b6d653242620 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 0fdca30fcb2303966ad2529b7a3b0599088c105d (diff) | |
| download | rust-5e3ae102dbeeb646e8c7d2d423cea263337a76af.tar.gz rust-5e3ae102dbeeb646e8c7d2d423cea263337a76af.zip | |
Dramatically expand the docs of std::raw.
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
