rust/src/libstd
bors bf30a213c4 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`.
2013-12-17 12:56:39 -08:00
..
comm Test fallout from std::comm rewrite 2013-12-16 22:55:49 -08:00
fmt std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
io auto merge of #10863 : cadencemarseille/rust/patch-handle-ENOENT, r=alexcrichton 2013-12-17 10:21:44 -08:00
num std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
path Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
rand Fallout of rewriting std::comm 2013-12-16 17:47:11 -08:00
rt Test fallout from std::comm rewrite 2013-12-16 22:55:49 -08:00
task Test fallout from std::comm rewrite 2013-12-16 22:55:49 -08:00
unstable Fallout of rewriting std::comm 2013-12-16 17:47:11 -08:00
any.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
ascii.rs Rename To{Str,Bytes}Consume traits to Into*. 2013-12-15 01:04:22 +11:00
at_vec.rs librustc: Remove identifiers named box, since it's about to become a keyword. 2013-12-15 10:41:15 -08:00
bool.rs test: Remove non-procedure uses of do from compiletest, libstd tests, 2013-11-26 08:25:27 -08:00
borrow.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
c_str.rs std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut []. 2013-12-15 23:37:41 +11:00
cast.rs libstd: Fix merge fallout. 2013-12-15 10:41:15 -08:00
cell.rs libstd: Implement the new Cell. 2013-12-16 22:38:02 -08:00
char.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
cleanup.rs librustc: Remove identifiers named box, since it's about to become a keyword. 2013-12-15 10:41:15 -08:00
clone.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
cmp.rs Now inline default 'ne' methods 2013-08-30 22:02:24 -04:00
condition.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
container.rs container: inline contains_key default method 2013-08-20 22:05:03 -04:00
default.rs std: Add a bunch of Default impls 2013-09-12 18:54:13 -07:00
either.rs Remove {As,Into,To}{Option,Either,Result} traits. 2013-12-14 23:22:01 +11:00
from_str.rs Add from_str docs 2013-09-05 00:58:12 -04:00
gc.rs libstd: Fix Win32 and other bustage. 2013-11-26 08:25:27 -08:00
hash.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
hashmap.rs vec: make the move iterator fast for all types 2013-12-16 05:56:42 -05:00
iter.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
kinds.rs librustc: Implement a Pod kind for types that can be memcpy'd. 2013-12-16 22:38:02 -08:00
lib.rs Fallout of rewriting std::comm 2013-12-16 17:47:11 -08:00
libc.rs std::libc: Simplify win32/win64 type definitions 2013-11-24 19:08:41 +09:00
local_data.rs librustc: Remove identifiers named box, since it's about to become a keyword. 2013-12-15 10:41:15 -08:00
logging.rs Add a macro to check if logging at a given label is enabled 2013-12-02 21:47:57 +01:00
managed.rs Fix an off-by-one in managed::refcount 2013-10-18 09:33:18 -07:00
mem.rs Cleaned, documented, wrote tests for up std::bool 2013-10-24 17:21:39 +02:00
ops.rs std: fix spelling in docs. 2013-12-15 16:26:09 +11:00
option.rs Remove {As,Into,To}{Option,Either,Result} traits. 2013-12-14 23:22:01 +11:00
os.rs std::vec: convert to(_mut)_ptr to as_... methods on &[] and &mut []. 2013-12-15 23:37:41 +11:00
owned.rs std: implement Total{Ord,Eq} for pointers. 2013-08-04 19:46:52 +10:00
prelude.rs auto merge of #10967 : chris-morgan/rust/clean-and-tidy-some-traits, r=alexcrichton 2013-12-17 12:56:39 -08:00
ptr.rs Spell out the units used for the offset argument, so that people do 2013-12-16 17:07:04 +01:00
rc.rs librustc: Fix merge fallout. 2013-11-26 11:04:39 -08:00
reflect.rs libstd: Remove all non-proc uses of do from libstd 2013-11-26 08:23:57 -08:00
repr.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
result.rs Remove {As,Into,To}{Option,Either,Result} traits. 2013-12-14 23:22:01 +11:00
rtdeps.rs Remove dependency on gnustl_shared for android builds 2013-12-12 23:06:59 -08:00
run.rs auto merge of #10863 : cadencemarseille/rust/patch-handle-ENOENT, r=alexcrichton 2013-12-17 10:21:44 -08:00
send_str.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
str.rs auto merge of #10984 : huonw/rust/clean-raw, r=cmr 2013-12-15 06:56:27 -08:00
to_bytes.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
to_str.rs Rename To{Str,Bytes}Consume traits to Into*. 2013-12-15 01:04:22 +11:00
trie.rs Make 'self lifetime illegal. 2013-12-11 10:54:06 -08:00
tuple.rs Removed a few macro-expanding-to-module workarounds 2013-11-29 17:33:36 +01:00
unicode.rs Remove dead codes 2013-12-08 02:55:28 -05:00
unit.rs Reordered the methods in std::Option and std::Result 2013-11-01 15:00:46 +01:00
util.rs Move std::util::ignore to std::prelude::drop 2013-12-03 20:40:38 -08:00
vec.rs auto merge of #10998 : thestinger/rust/iter, r=alexcrichton 2013-12-17 05:11:41 -08:00