]> git.lizzy.rs Git - rust.git/commit
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)
commitc5142056f7f57387dc37361889d13409667b920d
tree6e62f6151e03cdf5eaf04102bdd42abb3023dc8b
parent4b3b02f8f4f57046956d42c4c19d00c7bb260189
parent94d71f8836b3bfac3370e4d324ca1987d843552f
Auto merge of #22797 - alexcrichton:io-stdio, r=aturon

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.
src/test/run-pass/issue-16671.rs