Skip to content

Trailing whitespace remains when passing --edition 2024 #6568

Open
@mmottl

Description

@mmottl
❯ rustfmt --version
rustfmt 1.8.0-stable (4d91de4e48 2025-02-17)

Consider the following file foo.rs:

fn f() {} // This has trailing whitespace  

The trailing whitespace remains when calling rustfmt --edition 2024 foo.rs but rustfmt foo.rs removes it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions