Skip to content

Commit 5b569fc

Browse files
committed
Remove std::fmt::output
1 parent f3be78b commit 5b569fc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

text/0517-io-os-reform.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,13 +1318,11 @@ interface.
13181318

13191319
[gh22607]: https://github.com/rust-lang/rust/issues/22607
13201320

1321-
The `set_stdout` and `set_stderr` functions will be moved to a new
1322-
`std::fmt::output` module and renamed to `set_print` and `set_panic`,
1323-
respectively. These new names reflect what they actually do, removing a
1324-
longstanding confusion. The current `stdio::flush` function will also move to
1325-
this module and be renamed to `flush_print`.
1326-
1327-
The entire `std::fmt::output` module will remain `#[unstable]` for now, however.
1321+
The `set_stdout` and `set_stderr` functions will be removed with no replacement
1322+
for now. It's unclear whether these functions should indeed control a thread
1323+
local handle instead of a global handle as whether they're justified in the
1324+
first place. It is a backwards-compatible extension to allow this sort of output
1325+
to be redirected and can be considered if the need arises.
13281326

13291327
### `std::env`
13301328
[std::env]: #stdenv

0 commit comments

Comments
 (0)