-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Not all doc-comments on re-exports are displayed #43087
Comments
Would a type alias work in this case? /// I cannot comment it here!
pub use libc::termios as Termios
/// But this works fine!
pub type Termios = libc::termios; I think a type alias works almost identically as a re-export (only it shows up in a different rustdoc category). |
I believe this is fixed on the latest nightly. |
Indeed! Thanks. A related question: when pub-using an undocumented Is there a way to add some attribute to |
This doesn't seem fixed (anymore?). Using a |
Oh I see, it works for public re-exports of a private type. In my case I wanted to do something like this:
|
pub use
statements should document the type
If you want the second comment to appear, you can add |
In
nix
we're aliasing thelibc::termios
type usingpub use libc::termios as Termios
. That type has no documentation inlibc
, but we'd like to offer documentation for the type in our own crate. Specifying a doc comment above it doesn't support anything in the output. It'd be very useful if you could override documentation when aliasing types.Originally posted at rust-lang/cargo#4250.
The text was updated successfully, but these errors were encountered: