diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-08-18 09:27:51 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-18 09:27:51 +0900 |
| commit | 732bebd85452b877aff784ddb01bb0f71af18c5a (patch) | |
| tree | 2940ef0c5169b3f200229a25b6d2c77329e5eb3c /library/std/src/alloc.rs | |
| parent | 791768e8f6c0084e0db4fa46f43fb0101b238a38 (diff) | |
| parent | e7a72797506448b7525c963af2967356958f7e9b (diff) | |
| download | rust-732bebd85452b877aff784ddb01bb0f71af18c5a.tar.gz rust-732bebd85452b877aff784ddb01bb0f71af18c5a.zip | |
Rollup merge of #75629 - EllenNyan:ellen-intra-doc-links, r=jyn514
Use intra-doc links in `std::env`, `std::alloc` and `std::error` This is partial fixes for #75080.
Diffstat (limited to 'library/std/src/alloc.rs')
| -rw-r--r-- | library/std/src/alloc.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/library/std/src/alloc.rs b/library/std/src/alloc.rs index 4712cc95b4a..37a8f514aa1 100644 --- a/library/std/src/alloc.rs +++ b/library/std/src/alloc.rs @@ -7,8 +7,6 @@ //! like `cdylib`s and `staticlib`s are guaranteed to use the [`System`] by //! default. //! -//! [`System`]: struct.System.html -//! //! # The `#[global_allocator]` attribute //! //! This attribute allows configuring the choice of global allocator. @@ -43,8 +41,6 @@ //! The attribute is used on a `static` item whose type implements the //! [`GlobalAlloc`] trait. This type can be provided by an external library: //! -//! [`GlobalAlloc`]: ../../core/alloc/trait.GlobalAlloc.html -//! //! ```rust,ignore (demonstrates crates.io usage) //! extern crate jemallocator; //! @@ -284,9 +280,6 @@ 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); @@ -297,8 +290,6 @@ 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); |
