Skip to content

x.py fmt silently ignores argument #71094

Closed
@RalfJung

Description

@RalfJung

Ever since rustfmt was introduced into this repository, I used ./x.py fmt src/librustc_mir and similar commands to format only that part of the tree, thinking that this would cut down formatting time a bit. But I just realized that even when I do ./x.py fmt src/asdfgh, it just formats the entire repository. Looks like the argument is being silently ignored.

Ideally the argument should be honored, but at the least, there should be an error when passing an unexpected argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions