From d17dbc7e365bf53c08230c568841714f231cf58c Mon Sep 17 00:00:00 2001 From: Waffle Lapkin Date: Sat, 18 Oct 2025 14:07:00 +0200 Subject: [PATCH] hide `alloc::alloc::box_new` in docs It's an internal function which isn't supposed to be used outside standard library / `vec!`. --- library/alloc/src/boxed.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index 49ff768bed1b2..ae43fbfe1d69e 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -237,6 +237,7 @@ pub struct Box< /// the newly allocated memory. This is an intrinsic to avoid unnecessary copies. /// /// This is the surface syntax for `box ` expressions. +#[doc(hidden)] #[rustc_intrinsic] #[unstable(feature = "liballoc_internals", issue = "none")] pub fn box_new(x: T) -> Box;