Skip to content

Not formatting when it should #4589

Closed
Closed
@bjorn3

Description

@bjorn3

Describe the bug

In rust-lang/rust#79553 (comment) something roughly equivalent to the following was not formatted to how to should:

enum Foo {
    Bar {
        foo_bar: bool,
        baz: u8 },
}

The }, should be on a new line.

To Reproduce

Run ./x.py fmt on the rust repo as of rust-lang/rust@5bd9b60. The offending line is line 60 of compiler/rustc_mir_build/src/build/expr/as_place.rs.

Expected behavior

See "Describe the bug"

Meta

  • rustfmt version: rustfmt 1.4.27-nightly (580d826 2020-11-16)
  • From where did you install rustfmt?: The rust build system
  • How do you run rustfmt: ./x.py fmt

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