From ec337b613ec5519a54f2948f9d8b7beea5cba86b Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 30 Nov 2017 21:18:00 +0100 Subject: Show hidden items with rustdoc's document-private When using `#[doc(hidden)]` elements are hidden from docs even when the rustdoc flag `--document-private-items` is set. This behavior has been changed to display all hidden items when the flag is active. --- src/test/rustdoc/issue-46380.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/rustdoc/issue-46380.rs (limited to 'src/test/rustdoc') diff --git a/src/test/rustdoc/issue-46380.rs b/src/test/rustdoc/issue-46380.rs new file mode 100644 index 00000000000..85f29ec4b02 --- /dev/null +++ b/src/test/rustdoc/issue-46380.rs @@ -0,0 +1,15 @@ +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags: --document-private-items + +// @has issue_46380/struct.Hidden.html +#[doc(hidden)] +pub struct Hidden; -- cgit 1.4.1-3-g733a5