Skip to content

prettyprinter reorders comments to show before doc comments #6678

Closed as not planned
@ben0x539

Description

@ben0x539
$ echo '/** foo */ /* bar */ fn f() {}' | rustc - --pretty
/* bar */
/** foo */
fn f() { }

I'm not sure this is supposed to happen, but maybe it's prettier this way...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-prettyArea: Pretty printing (including `-Z unpretty`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions