Skip to content

x clean library/std fails with an unexpected argument error #108517

Closed
@clubby789

Description

@clubby789

x clean library/std invokes cargo clean --target ... --release std, resulting in

error: unexpected argument 'std' found

Usage: cargo clean [OPTIONS]

For more information, try '--help'.

Cleaning a compiler/ crate correctly adds the -p flag needed to specify packages.

I did notice that adding the -p caused the command to complete successfully, but the std build dir was not actually cleaned.

@rustbot label +T-bootstrap

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