about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-03-29 16:16:19 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-03-29 16:17:48 +0200
commitcdc4fa45896c2b086646c8c9c91adb8d9dc5e45f (patch)
tree7c72da3094820dd2c619b6524e380ad1db9f34b3
parent71ff7ef17c260e1b29b58cdf359b50799d9449da (diff)
downloadrust-cdc4fa45896c2b086646c8c9c91adb8d9dc5e45f.tar.gz
rust-cdc4fa45896c2b086646c8c9c91adb8d9dc5e45f.zip
Add regression test for #109695
-rw-r--r--tests/rustdoc/issue-109695-crate-doc-hidden.rs8
1 files changed, 8 insertions, 0 deletions
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)]