From a357d86b7c2c4a5089a8669a9c238af547743c8a Mon Sep 17 00:00:00 2001 From: Alphyr <47725341+a1phyr@users.noreply.github.com> Date: Sat, 16 Jan 2021 18:30:22 +0100 Subject: [PATCH] Hide internals items in documentation Co-authored-by: Joshua Nelson --- library/core/src/panicking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/src/panicking.rs b/library/core/src/panicking.rs index 36ae2449447..af8a6101392 100644 --- a/library/core/src/panicking.rs +++ b/library/core/src/panicking.rs @@ -93,6 +93,7 @@ pub fn panic_fmt(fmt: fmt::Arguments<'_>) -> ! { } #[derive(Debug)] +#[doc(hidden)] pub enum AssertKind { Eq, Ne, @@ -101,6 +102,7 @@ pub enum AssertKind { /// Internal function for `assert_eq!` and `assert_ne!` macros #[cold] #[track_caller] +#[doc(hidden)] pub fn assert_failed( kind: AssertKind, left: &T, -- 2.44.0