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