Skip to content

rustbuild: x.py fmt src/tools/rustfmt doesn't format code in the rustfmt subtree #90672

Open
@petrochenkov

Description

@petrochenkov

rustfmt's tests require its source code to be properly formatted, but when making changes to rustfmt through its subtree in rust-lang/rust, it seems like there's no way to do such formatting automatically.

@jyn514 suggests that x.py fmt src/tools/rustfmt should just work and do the formatting, and it's probably just a missing step in src/bootstrap/fmt.rs that prevents it from working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustfmtArea: RustfmtE-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions