Skip to content

Commit 33cab8c

Browse files
committed
Auto merge of #147847 - WaffleLapkin:hide_box_new, r=joboet
hide `alloc::alloc::box_new` in docs It's an internal function which isn't supposed to be used outside standard library / `vec!`.
2 parents e124355 + d17dbc7 commit 33cab8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/alloc/src/boxed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ pub struct Box<
237237
/// the newly allocated memory. This is an intrinsic to avoid unnecessary copies.
238238
///
239239
/// This is the surface syntax for `box <expr>` expressions.
240+
#[doc(hidden)]
240241
#[rustc_intrinsic]
241242
#[unstable(feature = "liballoc_internals", issue = "none")]
242243
pub fn box_new<T>(x: T) -> Box<T>;

0 commit comments

Comments
 (0)