From cdc4fa45896c2b086646c8c9c91adb8d9dc5e45f Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 29 Mar 2023 16:16:19 +0200 Subject: [PATCH] Add regression test for #109695 --- tests/rustdoc/issue-109695-crate-doc-hidden.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/rustdoc/issue-109695-crate-doc-hidden.rs diff --git a/tests/rustdoc/issue-109695-crate-doc-hidden.rs b/tests/rustdoc/issue-109695-crate-doc-hidden.rs new file mode 100644 index 00000000000..7a3e53a0d32 --- /dev/null +++ b/tests/rustdoc/issue-109695-crate-doc-hidden.rs @@ -0,0 +1,8 @@ +// This test ensures that even if the crate module is `#[doc(hidden)]`, the file +// is generated. + +// @has 'foo/index.html' +// @has 'foo/all.html' + +#![crate_name = "foo"] +#![doc(hidden)]