-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Rustdoc issues with macro reexport #56173
Comments
Hey @QuietMisdreavus as you implemented the |
@bkchr See the PR I've opened. That does fix the problem for me. (It basically worked, but missed some pieces to do the actual inlining in case of macros.) |
@weiznich nice :) |
For derives, it was deliberate to only have them appear as re-exports. The documentation information disappears when the proc-macro is sent between crates, so any re-export page would be completely blank other than the name of the derive. For |
…ort, r=QuietMisdreavus Rustdoc inline macro reexport Fixes rust-lang#56173 I assume this needs to have tests? Any pointers where these need to be added?
I've toying around a bit with how and where to document things. For this I've tried to reexport things at certain locations. To let the documentation appear on the reexported location I've been using
#[doc(inline)]
. This works fine for normal items, but fails for macros generated by macro rules and for custom derives. They are continued to be rendered just as reexports.Reproducing example:
Resulting docs for
bar
:I would expect that the documentation appears inline similar like the documentation of
SomeItem
.Rustdoc version:
The text was updated successfully, but these errors were encountered: