Skip to content

Commit

Permalink
BufWriter: actually export WriterPanicked error
Browse files Browse the repository at this point in the history
I didn't notice the submodule, which means I failed to re-export this
to make it actually-public.

Reported-by: Andrew Gallant <jamslam@gmail.com>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
  • Loading branch information
ijackson committed Jul 29, 2021
1 parent 5fb3394 commit cbba940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/io/buffered/mod.rs
Expand Up @@ -14,6 +14,8 @@ use crate::io::Error;

pub use bufreader::BufReader;
pub use bufwriter::BufWriter;
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
pub use bufwriter::WriterPanicked;
pub use linewriter::LineWriter;
use linewritershim::LineWriterShim;

Expand Down
2 changes: 2 additions & 0 deletions library/std/src/io/mod.rs
Expand Up @@ -264,6 +264,8 @@ use crate::sys_common::memchr;

#[stable(feature = "rust1", since = "1.0.0")]
pub use self::buffered::IntoInnerError;
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
pub use self::buffered::WriterPanicked;
#[stable(feature = "rust1", since = "1.0.0")]
pub use self::buffered::{BufReader, BufWriter, LineWriter};
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit cbba940

Please sign in to comment.