Rollup merge of #114268 - SUPERCILEX:empty, r=workingjubilee

Fix empty_write since rust version attribute

Fixup of https://github.com/rust-lang/rust/pull/98154 for the rust version.

r? ``@workingjubilee``
This commit is contained in:
Jubilee 2023-07-30 17:50:49 -07:00 committed by GitHub
commit 495e6577c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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