File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -754,13 +754,9 @@ pub struct StderrLock<'a> {
754
754
/// ```
755
755
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
756
756
pub fn stderr ( ) -> Stderr {
757
- // Note that unlike `stdout()` we don't use `Lazy` here which registers a
758
- // destructor. Stderr is not buffered nor does the `stderr_raw` type consume
759
- // any owned resources, so there's no need to run any destructors at some
760
- // point in the future.
761
- //
762
- // This has the added benefit of allowing `stderr` to be usable during
763
- // process shutdown as well!
757
+ // Note that unlike `stdout()` we don't use `at_exit` here to register a
758
+ // destructor. Stderr is not buffered , so there's no need to run a
759
+ // destructor for flushing the buffer
764
760
static INSTANCE : SyncOnceCell < ReentrantMutex < RefCell < StderrRaw > > > = SyncOnceCell :: new ( ) ;
765
761
766
762
Stderr {
You can’t perform that action at this time.
0 commit comments