diff options
| author | bors <bors@rust-lang.org> | 2015-06-15 06:44:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-15 06:44:42 +0000 |
| commit | 7517ecf4fc9cfe2adff8a38ecc2ef660692a4b5b (patch) | |
| tree | e1b6cb4d5c0cb9ae19e099fcdb968e1ea4d0e739 /src/libstd/rt | |
| parent | a54a80921971791b1148b7633cb43029f7d2ef9b (diff) | |
| parent | a7bbd7da4eb98127104fdfd415ad6c746f7e2a12 (diff) | |
| download | rust-7517ecf4fc9cfe2adff8a38ecc2ef660692a4b5b.tar.gz rust-7517ecf4fc9cfe2adff8a38ecc2ef660692a4b5b.zip | |
Auto merge of #26168 - sfackler:stdout-panic, r=alexcrichton
Closes #25977 The various `stdfoo_raw` methods in std::io now return `io::Result`s, since they may not exist on Windows. They will always return `Ok` on Unix-like platforms. [breaking-change]
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/util.rs b/src/libstd/rt/util.rs index b53219db245..04f36d99c8e 100644 --- a/src/libstd/rt/util.rs +++ b/src/libstd/rt/util.rs @@ -63,7 +63,7 @@ pub const ENFORCE_SANITY: bool = true || !cfg!(rtopt) || cfg!(rtdebug) || cfg!(rtassert); pub fn dumb_print(args: fmt::Arguments) { - let _ = Stderr::new().write_fmt(args); + let _ = Stderr::new().map(|mut stderr| stderr.write_fmt(args)); } pub fn abort(args: fmt::Arguments) -> ! { |
