]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #22797 - alexcrichton:io-stdio, r=aturon
authorbors <bors@rust-lang.org>
Mon, 2 Mar 2015 07:10:14 +0000 (07:10 +0000)
committerbors <bors@rust-lang.org>
Mon, 2 Mar 2015 07:10:14 +0000 (07:10 +0000)
This is an implementation of RFC 899 and adds stdio functionality to the new
`std::io` module. Details of the API can be found on the RFC, but from a high
level:

* `io::{stdin, stdout, stderr}` constructors are now available. There are also
  `*_raw` variants for unbuffered and unlocked access.
* All handles are globally shared (excluding raw variants).
* The stderr handle is no longer buffered.
* All handles can be explicitly locked (excluding the raw variants).

The `print!` and `println!` machinery has not yet been hooked up to these
streams just yet. The `std::fmt::output` module has also not yet been
implemented as part of this commit.

1  2 
src/test/run-pass/issue-16671.rs

Simple merge