Skip to content

Bootstrap panics if a crate is overloaded to one outside the local tree #78617

Closed
@IsaacWoods

Description

@IsaacWoods

This was triggered by overloading a crate in std's Cargo.toml:

libc = { path = "/hdd/libc", default-features = false, features = ['rustc-dep-of-std'] }
# libc = { version = "0.2.79", default-features = false, features = ['rustc-dep-of-std'] }

Causing the following panic:

$ ./x.py build --stage 1 library/std
Updating only changed submodules
Submodules updated in 0.05 seconds
    Updating crates.io index
    Finished dev [unoptimized + debuginfo] target(s) in 1.78s
thread 'main' panicked at 'no entry found for key', src/bootstrap/lib.rs:1114:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failed to run: /hdd/rust/build/bootstrap/debug/bootstrap build --stage 1 library/std
Build completed unsuccessfully in 0:00:02

Metadata

Metadata

Assignees

No one assigned

    Labels

    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