Skip to content

Commit badf4af

Browse files
committed
core::global_allocator docs link to std::alloc::GlobalAlloc
1 parent 48cab67 commit badf4af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/macros/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,8 @@ pub(crate) mod builtin {
13651365
}
13661366

13671367
/// Attribute macro applied to a static to register it as a global allocator.
1368+
///
1369+
/// See also [`std::alloc::GlobalAlloc`](../std/alloc/trait.GlobalAlloc.html).
13681370
#[stable(feature = "global_allocator", since = "1.28.0")]
13691371
#[allow_internal_unstable(rustc_attrs)]
13701372
#[rustc_builtin_macro]

0 commit comments

Comments
 (0)