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

Tuple-struct signature in generated docs is misordered. #34928

Closed
frewsxcv opened this issue Jul 19, 2016 · 1 comment
Closed

Tuple-struct signature in generated docs is misordered. #34928

frewsxcv opened this issue Jul 19, 2016 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@frewsxcv
Copy link
Member

In the source:

pub struct GeometryCollection<T>(pub Vec<Geometry<T>>) where T: Float;

In the generated documentation:

pub struct GeometryCollection<T> where T: Float(pub Vec<Geometry<T>>);
@steveklabnik steveklabnik added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Jul 19, 2016
@Aatch
Copy link
Contributor

Aatch commented Jul 20, 2016

This is because for record structs, the syntax is struct Foo<T> where T: Bar { /***/ }, so tuple structs will need some special-casing here.

Manishearth added a commit to Manishearth/rust that referenced this issue Jul 28, 2016
… r=alexcrichton

rustdoc: Fix tuple struct where clause rendering

For tuple structs the where clause comes after the definition.

Fixes rust-lang#34928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants