about summary refs log tree commit diff
diff options
context:
space:
mode:
authorShahar Or (mightyiam) <mightyiampresence@gmail.com>2020-09-26 14:57:42 +0700
committerShahar Or (mightyiam) <mightyiampresence@gmail.com>2020-09-29 14:39:44 +0700
commitbadf4afdd5010fa057d42c0fce56afd10eca54f7 (patch)
treec805f2768735b9c794061dc76c34158b2ef44315
parent48cab6744786cdc5cb5428d2b64efc967ae90496 (diff)
downloadrust-badf4afdd5010fa057d42c0fce56afd10eca54f7.tar.gz
rust-badf4afdd5010fa057d42c0fce56afd10eca54f7.zip
core::global_allocator docs link to std::alloc::GlobalAlloc
-rw-r--r--library/core/src/macros/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index a1b0821004b..4c62c16f506 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -1365,6 +1365,8 @@ pub(crate) mod builtin {
     }
 
     /// Attribute macro applied to a static to register it as a global allocator.
+    ///
+    /// See also [`std::alloc::GlobalAlloc`](../std/alloc/trait.GlobalAlloc.html).
     #[stable(feature = "global_allocator", since = "1.28.0")]
     #[allow_internal_unstable(rustc_attrs)]
     #[rustc_builtin_macro]