From 0bee80210d1e155b5502e51b693b6c478ed29efd Mon Sep 17 00:00:00 2001 From: Daniel Henry-Mantilla Date: Mon, 12 Oct 2020 19:50:12 +0200 Subject: 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 --- src/test/rustdoc/macro_pub_in_module.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/test/rustdoc/macro_pub_in_module.rs (limited to 'src/test/rustdoc') 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() {} +} -- cgit 1.4.1-3-g733a5