Skip to content

Poor TAIT formatting with version = "Two": + line breaks are not block indented #5027

Closed
@chitoyuu

Description

@chitoyuu

Currently on 1.4.37-nightly (dfc5add 2021-10-13), with version = "Two" and all other options left at default, this:

pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)> + ExactSizeIterator + 'a;

is formatted to:

pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
+ ExactSizeIterator
+ 'a;

...whereas on stable, the same code is formatted to the more familiar and (subjectively) more pleasing:

pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
    + ExactSizeIterator
    + 'a;

...with block indentation for the broken lines.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions