Skip to content
/ rust Public
forked from rust-lang/rust

Commit 0b4a80f

Browse files
committed
Fix empty_write since rust version attribute
1 parent a17c796 commit 0b4a80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/io/util.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl SizeHint for Empty {
100100
}
101101
}
102102

103-
#[stable(feature = "empty_write", since = "1.64.0")]
103+
#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
104104
impl Write for Empty {
105105
#[inline]
106106
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
@@ -124,7 +124,7 @@ impl Write for Empty {
124124
}
125125
}
126126

127-
#[stable(feature = "empty_write", since = "1.64.0")]
127+
#[stable(feature = "empty_write", since = "CURRENT_RUSTC_VERSION")]
128128
impl Write for &Empty {
129129
#[inline]
130130
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {

0 commit comments

Comments
 (0)