Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler: don't visit enum member expanded by macro twice #10105

Merged
merged 1 commit into from Dec 20, 2020

Conversation

asterite
Copy link
Member

Fixes #10104

It turns out, enum members generated by macros were visited twice. The end result is that a method defined there would be defined twice. The second one will hold a reference to the previous one, which is actually the same exact method, and when the doc generator peeks the previous methods to copy their docs, it would loop forever.

@asterite asterite added this to the 1.0.0 milestone Dec 20, 2020
@asterite asterite merged commit cf9c261 into master Dec 20, 2020
@asterite asterite deleted the bug/enum-macro-member-visited-twice branch December 20, 2020 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs stuck on enum with methods generated at compilation time
2 participants