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/alloc.rs | |
| 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/alloc.rs')
| -rw-r--r-- | src/libstd/alloc.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/alloc.rs b/src/libstd/alloc.rs index 4241f47b661..ff52974775b 100644 --- a/src/libstd/alloc.rs +++ b/src/libstd/alloc.rs @@ -173,6 +173,9 @@ static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut()); /// about the allocation that failed. /// /// The allocation error hook is a global resource. +/// +/// [`set_alloc_error_hook`]: fn.set_alloc_error_hook.html +/// [`take_alloc_error_hook`]: fn.take_alloc_error_hook.html #[unstable(feature = "alloc_error_hook", issue = "51245")] pub fn set_alloc_error_hook(hook: fn(Layout)) { HOOK.store(hook as *mut (), Ordering::SeqCst); @@ -183,6 +186,8 @@ pub fn set_alloc_error_hook(hook: fn(Layout)) { /// *See also the function [`set_alloc_error_hook`].* /// /// If no custom hook is registered, the default hook will be returned. +/// +/// [`set_alloc_error_hook`]: fn.set_alloc_error_hook.html #[unstable(feature = "alloc_error_hook", issue = "51245")] pub fn take_alloc_error_hook() -> fn(Layout) { let hook = HOOK.swap(ptr::null_mut(), Ordering::SeqCst); |
