diff options
| author | Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com> | 2021-01-05 15:07:40 +0100 |
|---|---|---|
| committer | Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com> | 2021-01-06 15:13:39 +0100 |
| commit | 255f107cacb8927e72798313d69fa83d2e752a20 (patch) | |
| tree | 3d8cb26f3dc355ca2666327a26781a4809ca2d07 /src/test/rustdoc | |
| parent | ce3ecd612f2ac52770293201848de733c86dcaaa (diff) | |
| download | rust-255f107cacb8927e72798313d69fa83d2e752a20.tar.gz rust-255f107cacb8927e72798313d69fa83d2e752a20.zip | |
Fix ICE on `pub macro`s defined within a non-module type namespace.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/macro_pub_in_module.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/rustdoc/macro_pub_in_module.rs b/src/test/rustdoc/macro_pub_in_module.rs index 59e69625455..4fd85d68994 100644 --- a/src/test/rustdoc/macro_pub_in_module.rs +++ b/src/test/rustdoc/macro_pub_in_module.rs @@ -72,3 +72,11 @@ const __: () = { pub mod __ { // @!has krate/__/macro.in_both_const_and_mod.html } + +enum Enum { + Crazy = { + // @!has krate/macro.this_is_getting_weird.html; + pub macro this_is_getting_weird() {} + 42 + }, +} |
