File tree Expand file tree Collapse file tree 6 files changed +6
-13
lines changed Expand file tree Collapse file tree 6 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,6 @@ pub use self::stdio::{_print, _eprint};
286286#[ doc( no_inline, hidden) ]
287287pub use self :: stdio:: { set_panic, set_print} ;
288288
289- // Used inside the standard library for panic output.
290- pub ( crate ) use self :: stdio:: stderr_raw;
291-
292289pub mod prelude;
293290mod buffered;
294291mod cursor;
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ struct StdoutRaw(stdio::Stdout);
3232///
3333/// This handle is not synchronized or buffered in any fashion. Constructed via
3434/// the `std::io::stdio::stderr_raw` function.
35- ///
36- /// Not exposed, but used inside the standard library for panic output.
37- pub ( crate ) struct StderrRaw ( stdio:: Stderr ) ;
35+ struct StderrRaw ( stdio:: Stderr ) ;
3836
3937/// Constructs a new raw handle to the standard input of this process.
4038///
@@ -63,9 +61,7 @@ fn stdout_raw() -> io::Result<StdoutRaw> { stdio::Stdout::new().map(StdoutRaw) }
6361///
6462/// The returned handle has no external synchronization or buffering layered on
6563/// top.
66- ///
67- /// Not exposed, but used inside the standard library for panic output.
68- pub ( crate ) fn stderr_raw ( ) -> io:: Result < StderrRaw > { stdio:: Stderr :: new ( ) . map ( StderrRaw ) }
64+ fn stderr_raw ( ) -> io:: Result < StderrRaw > { stdio:: Stderr :: new ( ) . map ( StderrRaw ) }
6965
7066impl Read for StdinRaw {
7167 fn read ( & mut self , buf : & mut [ u8 ] ) -> io:: Result < usize > { self . 0 . read ( buf) }
Original file line number Diff line number Diff line change @@ -60,5 +60,5 @@ pub fn is_ebadf(err: &io::Error) -> bool {
6060pub const STDIN_BUF_SIZE : usize = :: sys_common:: io:: DEFAULT_BUF_SIZE ;
6161
6262pub fn panic_output ( ) -> Option < impl io:: Write > {
63- io :: stderr_raw ( ) . ok ( )
63+ Stderr :: new ( ) . ok ( )
6464}
Original file line number Diff line number Diff line change @@ -60,5 +60,5 @@ pub fn is_ebadf(err: &io::Error) -> bool {
6060pub const STDIN_BUF_SIZE : usize = :: sys_common:: io:: DEFAULT_BUF_SIZE ;
6161
6262pub fn panic_output ( ) -> Option < impl io:: Write > {
63- io :: stderr_raw ( ) . ok ( )
63+ Stderr :: new ( ) . ok ( )
6464}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub fn is_ebadf(_err: &io::Error) -> bool {
5959
6060pub fn panic_output ( ) -> Option < impl io:: Write > {
6161 if cfg ! ( feature = "wasm_syscall" ) {
62- io :: stderr_raw ( ) . ok ( )
62+ Stderr :: new ( ) . ok ( )
6363 } else {
6464 None
6565 }
Original file line number Diff line number Diff line change @@ -279,5 +279,5 @@ pub fn is_ebadf(err: &io::Error) -> bool {
279279}
280280
281281pub fn panic_output ( ) -> Option < impl io:: Write > {
282- io :: stderr_raw ( ) . ok ( )
282+ Stderr :: new ( ) . ok ( )
283283}
You can’t perform that action at this time.
0 commit comments