See also: rust-lang/rust#88576
In short, Windows stdio functions can return null to mean that there are no handles. The code here assumes stdio handles are always valid File handles. While this is technically an incorrect assumption, it worked out ok until Rust's new "Safe I/O" code was implemented.
A workaround will be implemented upstream but I thought there should be an issue here too, since unfortunately it reached stable, causing env_logger to break.
See also: rust-lang/rust#88576
In short, Windows stdio functions can return null to mean that there are no handles. The code here assumes stdio handles are always valid
Filehandles. While this is technically an incorrect assumption, it worked out ok until Rust's new "Safe I/O" code was implemented.A workaround will be implemented upstream but I thought there should be an issue here too, since unfortunately it reached stable, causing
env_loggerto break.