diff options
| author | bors <bors@rust-lang.org> | 2013-12-17 12:56:39 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-12-17 12:56:39 -0800 |
| commit | bf30a213c4de79ba46e3729558118669f207435e (patch) | |
| tree | d08ba96bcfe05057d16a1cba5951416b1a7db251 /src/rustllvm/RustWrapper.cpp | |
| parent | 3272b002b3d2943f17be70e719bf2ffa6058cf72 (diff) | |
| parent | b76997f3a947b296ca04be184da88ff1c0959dcb (diff) | |
| download | rust-bf30a213c4de79ba46e3729558118669f207435e.tar.gz rust-bf30a213c4de79ba46e3729558118669f207435e.zip | |
auto merge of #10967 : chris-morgan/rust/clean-and-tidy-some-traits, r=alexcrichton
### Remove {As,Into,To}{Option,Either,Result} traits.
Expanded, that is:
- `AsOption`
- `IntoOption`
- `ToOption`
- `AsEither`
- `IntoEither`
- `ToEither`
- `AsResult`
- `IntoResult`
- `ToResult`
These were defined for each other but never *used* anywhere. They are
all trivial and so removal will have negligible effect upon anyone.
`Either` has fallen out of favour (and its implementation of these
traits of dubious semantics), `Option<T>` → `Result<T, ()>` was never
really useful and `Result<T, E>` → `Option<T>` should now be done with
`Result.ok()` (mirrored with `Result.err()` for even more usefulness).
In summary, there's really no point in any of these remaining.
### Rename To{Str,Bytes}Consume traits to Into*.
That is:
- `ToStrConsume` → `IntoStr`;
- `ToBytesConsume` → `IntoBytes`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
