rust/src
Alex Crichton b53695b47a rollup merge of #21835: alexcrichton/iov2
This commit is an implementation of [RFC 576][rfc] which adds back the `std::io`
module to the standard library. No functionality in `std::old_io` has been
deprecated just yet, and the new `std::io` module is behind the same `io`
feature gate.

[rfc]: https://github.com/rust-lang/rfcs/pull/576

A good bit of functionality was copied over from `std::old_io`, but many tweaks
were required for the new method signatures. Behavior such as precisely when
buffered objects call to the underlying object may have been tweaked slightly in
the transition. All implementations were audited to use composition wherever
possible. For example the custom `pos` and `cap` cursors in `BufReader` were
removed in favor of just using `Cursor<Vec<u8>>`.

A few liberties were taken during this implementation which were not explicitly
spelled out in the RFC:

* The old `LineBufferedWriter` is now named `LineWriter`
* The internal representation of `Error` now favors OS error codes (a
  0-allocation path) and contains a `Box` for extra semantic data.
* The io prelude currently reexports `Seek` as `NewSeek` to prevent conflicts
  with the real prelude reexport of `old_io::Seek`
* The `chars` method was moved from `BufReadExt` to `ReadExt`.
* The `chars` iterator returns a custom error with a variant that explains that
  the data was not valid UTF-8.
2015-02-03 15:35:54 -08:00
..
compiler-rt@58ab642c30 Updated compiler-rt 2015-01-09 18:38:30 +02:00
compiletest Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
doc rollup merge of #21865: steveklabnik/gh21501 2015-02-02 11:01:26 -08:00
driver Test fixes and rebase conflicts 2015-01-30 14:53:34 -08:00
etc rollup merge of #21787: alexcrichton/std-env 2015-02-02 10:58:01 -08:00
grammar cleanup: s/v.slice*()/&v[a..b]/g + remove redundant as_slice() calls 2015-01-27 09:03:06 -05:00
jemalloc@b001609960
liballoc Auto merge of #21647 - alfie:suffix-medium, r=alexcrichton 2015-02-02 11:52:34 +00:00
libarena Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
libbacktrace openbsd support 2015-02-01 14:41:38 +01:00
libcollections rollup merge of #21842: alexcrichton/issue-21839 2015-02-02 11:01:16 -08:00
libcore Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
libcoretest rollup merge of #21854: alexcrichton/try-borrow 2015-02-02 11:01:23 -08:00
libflate More deprecating of i/u suffixes 2015-02-02 23:37:01 +00:00
libfmt_macros register snapshots 2015-02-02 13:38:32 -05:00
libgetopts Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
libgraphviz Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
liblibc Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
liblog Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
librand Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
librbml More deprecating of i/u suffixes 2015-02-02 23:37:01 +00:00
librustc rollup merge of #21869: dotdash/bogus_match 2015-02-02 11:01:29 -08:00
librustc_back Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
librustc_bitflags Test fixes and rebase conflicts 2015-01-30 14:53:34 -08:00
librustc_borrowck for x in xs.iter_mut() -> for x in &mut xs 2015-02-02 13:40:18 -05:00
librustc_driver Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
librustc_llvm rollup merge of #21830: japaric/for-cleanup 2015-02-02 11:01:12 -08:00
librustc_privacy for x in xs.iter() -> for x in &xs 2015-02-02 13:40:18 -05:00
librustc_resolve Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
librustc_trans Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
librustc_typeck Auto merge of #21675 - huonw:less-false-positives, r=nikomatsakis 2015-02-03 12:49:21 +00:00
librustdoc Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
libserialize Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
libstd rollup merge of #21835: alexcrichton/iov2 2015-02-03 15:35:54 -08:00
libsyntax Rename std::path to std::old_path 2015-02-03 14:34:42 -08:00
libterm rollup merge of #21830: japaric/for-cleanup 2015-02-02 11:01:12 -08:00
libtest Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
libunicode Auto merge of #21613 - alfie:suffix-small, r=alexcrichton 2015-02-03 07:59:04 +00:00
llvm@2d54c4f559 Update LLVM to rust-llvm-2015-01-30 2015-02-01 20:00:35 +01:00
rt openbsd: incoporate remarks 2015-02-01 14:41:40 +01:00
rust-installer@e577c97b49 Fix revert of rust-installer 2015-01-09 10:19:30 -08:00
rustbook for x in xs.into_iter() -> for x in xs 2015-02-02 13:40:18 -05:00
rustllvm Test fixes and rebase conflicts 2015-02-02 18:50:23 -08:00
test Add new path module 2015-02-03 14:52:03 -08:00
snapshots.txt register snapshots 2015-02-02 13:38:32 -05:00