Skip to content

Fields section of union documentation is formatted weirdly in rustdoc #43404

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

Closed
burtonageo opened this issue Jul 22, 2017 · 0 comments · Fixed by #43436
Closed

Fields section of union documentation is formatted weirdly in rustdoc #43404

burtonageo opened this issue Jul 22, 2017 · 0 comments · Fixed by #43436

Comments

@burtonageo
Copy link
Contributor

When looking at the generated documentation for a union (e.g. https://docs.rs/MacTypes-sys/2.0.2/MacTypes_sys/union.NumVersionVariant.html), each field in the 'Fields' section is laid out on the same line:

parts: NumVersion whole: UInt32 

It would be nicer if they were laid out vertically as they are in structs (e.g. https://docs.rs/MacTypes-sys/2.0.2/MacTypes_sys/struct.FixedRect.html)

@burtonageo burtonageo changed the title Fields section of union documentation is formatted weirdly Fields section of union documentation is formatted weirdly in rustdoc Jul 22, 2017
zackmdavis added a commit to zackmdavis/rust that referenced this issue Jul 23, 2017
Previously, the union fields would all render on the same line with
hideous spacing; comparison to the analogous section for structs makes
it undoubtable that `display: block` is the true intent.

Concisely and definitively resolves rust-lang#43404 and its perfidious
malignancy.
bors added a commit that referenced this issue Jul 24, 2017
…GuillaumeGomez

rustdoc: fix layout of Fields section in documentation for unions

Previously, the union fields would all render on the same line with
hideous spacing; comparison to the analogous section for structs makes
it undoubtable that `display: block` is the true intent.

Concisely and definitively resolves #43404 and its perfidious
malignancy.
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 a pull request may close this issue.

1 participant