X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fliballoc%2Falloc.rs;h=f3877e51a6633f2589885ce08015fa5d0da46b85;hb=55b5ab83592d607a6ba8793ac76bedadb05e5bab;hp=ec652df3b37a49829a1f2972a7f3b99ef82e0a3d;hpb=b2c6b8c29f13f8d1f242da89e587960b95337819;p=rust.git diff --git a/src/liballoc/alloc.rs b/src/liballoc/alloc.rs index ec652df3b37..f3877e51a66 100644 --- a/src/liballoc/alloc.rs +++ b/src/liballoc/alloc.rs @@ -34,6 +34,9 @@ fn __rust_realloc(ptr: *mut u8, /// This type implements the [`Alloc`] trait by forwarding calls /// to the allocator registered with the `#[global_allocator]` attribute /// if there is one, or the `std` crate’s default. +/// +/// Note: while this type is unstable, the functionality it provides can be +/// accessed through the [free functions in `alloc`](index.html#functions). #[unstable(feature = "allocator_api", issue = "32838")] #[derive(Copy, Clone, Default, Debug)] pub struct Global;