1
Fork 0

Fix invalid stability attribute features in standard library

This commit is contained in:
David Tolnay 2023-10-15 12:20:12 -07:00
parent 9853f6132f
commit 67ea7986c7
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
2 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@
//! match those defined by C, so that code that interacts with C will //! match those defined by C, so that code that interacts with C will
//! refer to the correct types. //! refer to the correct types.
#![stable(feature = "", since = "1.30.0")] #![stable(feature = "core_ffi", since = "1.30.0")]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
use crate::fmt; use crate::fmt;

View file

@ -1140,10 +1140,10 @@ pub fn read_to_string<R: Read>(mut reader: R) -> Result<String> {
#[repr(transparent)] #[repr(transparent)]
pub struct IoSliceMut<'a>(sys::io::IoSliceMut<'a>); pub struct IoSliceMut<'a>(sys::io::IoSliceMut<'a>);
#[stable(feature = "iovec-send-sync", since = "1.44.0")] #[stable(feature = "iovec_send_sync", since = "1.44.0")]
unsafe impl<'a> Send for IoSliceMut<'a> {} unsafe impl<'a> Send for IoSliceMut<'a> {}
#[stable(feature = "iovec-send-sync", since = "1.44.0")] #[stable(feature = "iovec_send_sync", since = "1.44.0")]
unsafe impl<'a> Sync for IoSliceMut<'a> {} unsafe impl<'a> Sync for IoSliceMut<'a> {}
#[stable(feature = "iovec", since = "1.36.0")] #[stable(feature = "iovec", since = "1.36.0")]
@ -1283,10 +1283,10 @@ impl<'a> DerefMut for IoSliceMut<'a> {
#[repr(transparent)] #[repr(transparent)]
pub struct IoSlice<'a>(sys::io::IoSlice<'a>); pub struct IoSlice<'a>(sys::io::IoSlice<'a>);
#[stable(feature = "iovec-send-sync", since = "1.44.0")] #[stable(feature = "iovec_send_sync", since = "1.44.0")]
unsafe impl<'a> Send for IoSlice<'a> {} unsafe impl<'a> Send for IoSlice<'a> {}
#[stable(feature = "iovec-send-sync", since = "1.44.0")] #[stable(feature = "iovec_send_sync", since = "1.44.0")]
unsafe impl<'a> Sync for IoSlice<'a> {} unsafe impl<'a> Sync for IoSlice<'a> {}
#[stable(feature = "iovec", since = "1.36.0")] #[stable(feature = "iovec", since = "1.36.0")]