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

Rustdoc renders type alias in a wrong way #41036

Closed
killercup opened this issue Apr 3, 2017 · 2 comments
Closed

Rustdoc renders type alias in a wrong way #41036

killercup opened this issue Apr 3, 2017 · 2 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@killercup
Copy link
Member

'Complex' type aliases get rendered incorrectly by Rustdoc.

E.g., diesel::expression::helper_types::AsExprOf is defined here as:

pub type AsExprOf<Item, Type> = <Item as AsExpression<Type>>::Expression;

Rustdoc (from Rust 1.16 stable, rendered on Travis), however renders it like this (can be seen here):

type AsExprOf<Item, Type> = Item::Expression;
@killercup killercup changed the title Rust renders type alias in a wrong way Rustdoc renders type alias in a wrong way Apr 3, 2017
@GuillaumeGomez GuillaumeGomez added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools labels Apr 4, 2017
@GuillaumeGomez
Copy link
Member

Once the current rustdoc switch is done, I'll try to work on this one.

@GuillaumeGomez
Copy link
Member

Switch is now done. Taking a look.

frewsxcv added a commit to frewsxcv/rust that referenced this issue Apr 14, 2017
…eveklabnik,frewsxcv

Fix invalid associated type rendering in rustdoc

Fixes rust-lang#41036.

r? @rust-lang/docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools 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

2 participants