]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/windows/stdio.rs
Refactor stderr_prints_nothing into a more modular function
[rust.git] / src / libstd / sys / windows / stdio.rs
index c3a94698a0f3648093f614149b96b6a25482a0bc..61e0db87ebe118ef0ea3d50bc0e63acaa8412b8d 100644 (file)
@@ -228,6 +228,6 @@ pub fn is_ebadf(err: &io::Error) -> bool {
 // been seen to be acceptable.
 pub const STDIN_BUF_SIZE: usize = 8 * 1024;
 
-pub fn stderr_prints_nothing() -> bool {
-    false
+pub fn panic_output() -> Option<impl io::Write> {
+    Stderr::new().ok()
 }