Skip to content

rustdoc: run rustfmt on type definitions #36654

Closed

Description

@fitzgen

When we have a lot of generic parameters and where clauses, it becomes unreadable in rustdoc pretty quickly.

For example:

screen shot 2016-09-22 at 1 20 04 pm

Activity

  1. hanna-kruppe commented on Sep 23, 2016

    @hanna-kruppe
    Contributor

    The two PRs backlinked above made me think that perhaps we should rustfmt all code-like snippets included in rustdoc's output. I am not 100% sure, since the snippets in API docs aren't always like real code and don't always serve the same function. But since it's generally supposed to look like Rust code, I guess it's reasonable to apply the same style to it as to real code.

  2. Mark-Simulacrum commented on May 13, 2017

    @Mark-Simulacrum
    Member

    Today this looks much better. I think this is effectively "fixed".

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions