Fix ICE on pub macros defined within a non-module type namespace.

This commit is contained in:
Daniel Henry-Mantilla 2021-01-05 15:07:40 +01:00
parent ce3ecd612f
commit 255f107cac
2 changed files with 21 additions and 5 deletions

View file

@ -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
},
}