Correct a few stability attributes

This commit is contained in:
Oliver Middleton
2017-12-27 14:11:05 +00:00
parent 0efdfa1d62
commit a8d107be25
8 changed files with 39 additions and 24 deletions

View File

@@ -382,7 +382,7 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Mutex<T> {
}
}
#[stable(feature = "mutex_from", since = "1.22.0")]
#[stable(feature = "mutex_from", since = "1.24.0")]
impl<T> From<T> for Mutex<T> {
/// Creates a new mutex in an unlocked state ready for use.
/// This is equivalent to [`Mutex::new`].

View File

@@ -457,7 +457,7 @@ impl<T: Default> Default for RwLock<T> {
}
}
#[stable(feature = "rw_lock_from", since = "1.22.0")]
#[stable(feature = "rw_lock_from", since = "1.24.0")]
impl<T> From<T> for RwLock<T> {
/// Creates a new instance of an `RwLock<T>` which is unlocked.
/// This is equivalent to [`RwLock::new`].