diff options
| author | Taiki Endo <te316e89@gmail.com> | 2019-05-04 23:48:57 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2019-05-04 23:48:57 +0900 |
| commit | ccb9dac5ed65341bf8d9ce01a83b9aad02f42526 (patch) | |
| tree | 8148c29c67cf4418b404cfc43f913179e399939c /src/libstd/sync | |
| parent | ef9a876f8297e26859469b004047e0946ed10565 (diff) | |
| download | rust-ccb9dac5ed65341bf8d9ce01a83b9aad02f42526.tar.gz rust-ccb9dac5ed65341bf8d9ce01a83b9aad02f42526.zip | |
Fix intra-doc link resolution failure on re-exporting libstd
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/mutex.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sync/rwlock.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sync/mutex.rs b/src/libstd/sync/mutex.rs index 11ac34fcb24..87c2318a937 100644 --- a/src/libstd/sync/mutex.rs +++ b/src/libstd/sync/mutex.rs @@ -376,6 +376,8 @@ unsafe impl<#[may_dangle] T: ?Sized> Drop for Mutex<T> { impl<T> From<T> for Mutex<T> { /// Creates a new mutex in an unlocked state ready for use. /// This is equivalent to [`Mutex::new`]. + /// + /// [`Mutex::new`]: ../../std/sync/struct.Mutex.html#method.new fn from(t: T) -> Self { Mutex::new(t) } diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 1299a744095..b1b56f321fc 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -453,6 +453,8 @@ impl<T: Default> Default for RwLock<T> { impl<T> From<T> for RwLock<T> { /// Creates a new instance of an `RwLock<T>` which is unlocked. /// This is equivalent to [`RwLock::new`]. + /// + /// [`RwLock::new`]: ../../std/sync/struct.RwLock.html#method.new fn from(t: T) -> Self { RwLock::new(t) } |
