Skip to content

cfg(bootstrap) should not be allowed in library/ #142150

Closed
@RalfJung

Description

@RalfJung

#141925 removed bootstrap from the allowed-cfg list for the library crates, but ./x still passes in extra flags that allow cfg(bootstrap). This has already led to new cfg(bootstrap) slipping in, and it has led to issue in tooling that builds library/ crates outside of ./x (such as https://github.com/rust-lang/miri-test-libstd/).

Cc @Urgau @cuviper @onur-ozkan @workingjubilee

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.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