Skip to content

./x.py test deletes rustc_private artifacts from the sysroot #53650

Closed as not planned
@RalfJung

Description

@RalfJung

After doing ./x.py --keep-stage 0 build src/rustc, I can use build/$ARCH/stage2 as Rust toolchain through rustup, and it works just fine. However, if I now do ./x.py --keep-stage 0 test ..., the toolchain breaks -- for example, compiling miri fails with error[E0463]: can't find crate for `rustc`. I have to do ./x.py --keep-stage 0 build src/rustc again (which finishes pretty quickly) to fix this -- but that should not be necessary.

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)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