Skip to content

Building libstd without any features does not work #56228

@RalfJung

Description

@RalfJung

Building libstd without any features set leads to

error[E0463]: can't find crate for `panic_unwind`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0463`.
error: Could not compile `std`.

To learn more, run the command again with --verbose.
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.qBKqt1BCzPhj/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "-p" "std"` failed with exit code: Some(101)

Looks like we try to use that crate even if the feature is not set (and hence the dependency not enabled in Cargo.toml)?

Cc @alexcrichton

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