[Rust] Support macro repetitions inside structs#3912
[Rust] Support macro repetitions inside structs#3912FichteFoll wants to merge 2 commits intosublimehq:masterfrom
Conversation
This only addresses a specific case of macro repetitions inside the struct body and similar changes to other statements with body blocks are likely also necessary, but I'm keeping the change to a limited in order to observe its effects first. Further reports of such issues can be handled analogously.
|
The other reason I didn't do it for other block statements is that I didn't have any (valid) examples at hand to verify with and I'm not comfortable enough with macros to craft them ad-hoc. |
`const` and function definitions are not valid inside structs. `impl` was probably meant here.
|
This doesn't handle macros like |
@FichteFoll Do you plan to pick this up again? |
|
Not in the near future. I don't think this can be handled cleanly with the current structure and inside a Haven't really thought about it more than that, however. |
This only addresses a specific case of macro repetitions inside the struct body and similar changes to other statements with body blocks are likely also necessary, but I'm keeping the change to a limited scope in order to observe its effects first. Further reports of such issues can be handled analogously.
Closes #3904.