core::global_allocator docs link to std::alloc::GlobalAlloc

This commit is contained in:
Shahar Or (mightyiam) 2020-09-26 14:57:42 +07:00
parent 48cab67447
commit badf4afdd5
1 changed files with 2 additions and 0 deletions

View File

@ -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]