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

Remove restriction on documenting empty baremodules #38998

Merged
merged 1 commit into from
Dec 25, 2020
Merged

Remove restriction on documenting empty baremodules #38998

merged 1 commit into from
Dec 25, 2020

Conversation

Keno
Copy link
Member

@Keno Keno commented Dec 25, 2020

Replaces and closes #13109. The underlying bug here appears to have
been fixed and the restriction here was never triggered since lowering
now always inserts LineNumberNodes, but we might as well remove the
restriction since the bug is fixed.

@Keno Keno changed the title Remote restriction on documenting empty baremodules Remove restriction on documenting empty baremodules Dec 25, 2020
test/docs.jl Outdated
@@ -1236,3 +1236,7 @@ Test.collect_test_logs() do # suppress printing of any
eval(quote "Second docstring" Module29432 end) # requires toplevel
end
@test docstrings_equal(@doc(Module29432), doc"Second docstring")

# Issue #13109
eval(Expr(:macrocall, GlobalRef(Core, "@doc"), nothing, Expr(:module, false, MBareModuleEmpty, Expr(:block))))
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
eval(Expr(:macrocall, GlobalRef(Core, "@doc"), nothing, Expr(:module, false, MBareModuleEmpty, Expr(:block))))
eval(Expr(:macrocall, GlobalRef(Core, "@doc"), nothing, Expr(:module, false, :MBareModuleEmpty, Expr(:block))))

Replaces and closes #13109. The underlying bug here appears to have
been fixed and the restriction here was never triggered since lowering
now always inserts LineNumberNodes, but we might as well remove the
restriction since the bug is fixed.
@Keno Keno merged commit 1e2e482 into master Dec 25, 2020
@Keno Keno deleted the kf/13109 branch December 25, 2020 09:27
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
Replaces and closes JuliaLang#13109. The underlying bug here appears to have
been fixed and the restriction here was never triggered since lowering
now always inserts LineNumberNodes, but we might as well remove the
restriction since the bug is fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants