Skip to content

Commit dea6d6c

Browse files
committed
BufWriter::into_raw_parts: Add tracking issue number
Signed-off-by: Ian Jackson <[email protected]>
1 parent 79c72f5 commit dea6d6c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: library/std/src/io/buffered/bufwriter.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ impl<W: Write> BufWriter<W> {
313313
/// assert_eq!(recovered_writer.len(), 0);
314314
/// assert_eq!(&buffered_data.unwrap(), b"ata");
315315
/// ```
316-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
316+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
317317
pub fn into_raw_parts(mut self) -> (W, Result<Vec<u8>, WriterPanicked>) {
318318
let buf = mem::take(&mut self.buf);
319319
let buf = if !self.panicked { Ok(buf) } else { Err(WriterPanicked { buf }) };
320320
(self.inner.take().unwrap(), buf)
321321
}
322322
}
323323

324-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
324+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
325325
/// Error returned for the buffered data from `BufWriter::into_raw_parts`, when the underlying
326326
/// writer has previously panicked. Contains the (possibly partly written) buffered data.
327327
///
@@ -355,7 +355,7 @@ pub struct WriterPanicked {
355355
impl WriterPanicked {
356356
/// Returns the perhaps-unwritten data. Some of this data may have been written by the
357357
/// panicking call(s) to the underlying writer, so simply writing it again is not a good idea.
358-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
358+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
359359
pub fn into_inner(self) -> Vec<u8> {
360360
self.buf
361361
}
@@ -364,22 +364,22 @@ impl WriterPanicked {
364364
"BufWriter inner writer panicked, what data remains unwritten is not known";
365365
}
366366

367-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
367+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
368368
impl error::Error for WriterPanicked {
369369
#[allow(deprecated, deprecated_in_future)]
370370
fn description(&self) -> &str {
371371
Self::DESCRIPTION
372372
}
373373
}
374374

375-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
375+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
376376
impl fmt::Display for WriterPanicked {
377377
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
378378
write!(f, "{}", Self::DESCRIPTION)
379379
}
380380
}
381381

382-
#[unstable(feature = "bufwriter_into_raw_parts", issue = "none")]
382+
#[unstable(feature = "bufwriter_into_raw_parts", issue = "80690")]
383383
impl fmt::Debug for WriterPanicked {
384384
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
385385
f.debug_struct("WriterPanicked")

0 commit comments

Comments
 (0)