Skip to content

Rustdoc renders type alias in a wrong way #41036

Closed
@killercup

Description

@killercup

'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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions