From badf4afdd5010fa057d42c0fce56afd10eca54f7 Mon Sep 17 00:00:00 2001 From: "Shahar Or (mightyiam)" Date: Sat, 26 Sep 2020 14:57:42 +0700 Subject: [PATCH] core::global_allocator docs link to std::alloc::GlobalAlloc --- library/core/src/macros/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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]