about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2020-10-12 19:50:12 +0200
committerDaniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>2021-01-06 15:13:38 +0100
commit0bee80210d1e155b5502e51b693b6c478ed29efd (patch)
tree0fd4aba99622724360d13f4c74cf93455cafcfaf /src/test/rustdoc
parent8fec6c7bb9f2a549b6f424b3dd1c2c257286bc6d (diff)
downloadrust-0bee80210d1e155b5502e51b693b6c478ed29efd.tar.gz
rust-0bee80210d1e155b5502e51b693b6c478ed29efd.zip
Rustdoc: Fix macros 2.0 and built-in derives being shown at the wrong path.
Fixes #74355

The issue with the built-in derives may be related to:
https://github.com/rust-lang/rust/issues/55482#issuecomment-434035721
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/macro_pub_in_module.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/rustdoc/macro_pub_in_module.rs b/src/test/rustdoc/macro_pub_in_module.rs
new file mode 100644
index 00000000000..2dfc6b41706
--- /dev/null
+++ b/src/test/rustdoc/macro_pub_in_module.rs
@@ -0,0 +1,9 @@
+//! See issue #74355
+#![crate_name = "krate"]
+#![feature(decl_macro)]
+
+// @has krate/some_module/macro.my_macro.html
+pub mod some_module {
+    //
+    pub macro my_macro() {}
+}