File tree 6 files changed +6
-13
lines changed
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};
286
286
#[ doc( no_inline, hidden) ]
287
287
pub use self :: stdio:: { set_panic, set_print} ;
288
288
289
- // Used inside the standard library for panic output.
290
- pub ( crate ) use self :: stdio:: stderr_raw;
291
-
292
289
pub mod prelude;
293
290
mod buffered;
294
291
mod cursor;
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ struct StdoutRaw(stdio::Stdout);
32
32
///
33
33
/// This handle is not synchronized or buffered in any fashion. Constructed via
34
34
/// 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 ) ;
38
36
39
37
/// Constructs a new raw handle to the standard input of this process.
40
38
///
@@ -63,9 +61,7 @@ fn stdout_raw() -> io::Result<StdoutRaw> { stdio::Stdout::new().map(StdoutRaw) }
63
61
///
64
62
/// The returned handle has no external synchronization or buffering layered on
65
63
/// 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 ) }
69
65
70
66
impl Read for StdinRaw {
71
67
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 {
60
60
pub const STDIN_BUF_SIZE : usize = :: sys_common:: io:: DEFAULT_BUF_SIZE ;
61
61
62
62
pub fn panic_output ( ) -> Option < impl io:: Write > {
63
- io :: stderr_raw ( ) . ok ( )
63
+ Stderr :: new ( ) . ok ( )
64
64
}
Original file line number Diff line number Diff line change @@ -60,5 +60,5 @@ pub fn is_ebadf(err: &io::Error) -> bool {
60
60
pub const STDIN_BUF_SIZE : usize = :: sys_common:: io:: DEFAULT_BUF_SIZE ;
61
61
62
62
pub fn panic_output ( ) -> Option < impl io:: Write > {
63
- io :: stderr_raw ( ) . ok ( )
63
+ Stderr :: new ( ) . ok ( )
64
64
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub fn is_ebadf(_err: &io::Error) -> bool {
59
59
60
60
pub fn panic_output ( ) -> Option < impl io:: Write > {
61
61
if cfg ! ( feature = "wasm_syscall" ) {
62
- io :: stderr_raw ( ) . ok ( )
62
+ Stderr :: new ( ) . ok ( )
63
63
} else {
64
64
None
65
65
}
Original file line number Diff line number Diff line change @@ -279,5 +279,5 @@ pub fn is_ebadf(err: &io::Error) -> bool {
279
279
}
280
280
281
281
pub fn panic_output ( ) -> Option < impl io:: Write > {
282
- io :: stderr_raw ( ) . ok ( )
282
+ Stderr :: new ( ) . ok ( )
283
283
}
You can’t perform that action at this time.
0 commit comments