Skip to content

Passing --no-doc to ./x.py test causes panic_abort tests to fail #80124

Open
@jacob-hughes

Description

@jacob-hughes

Running ./x.py test --stage 1 --no-doc on the latest version of nightly (#80114) causes the test suite to crash with the following error:

error: building tests with panic=abort is not supported without `-Zpanic_abort_tests`

error: aborting due to previous error

error: could not compile `panic_abort`

This seems like a bug in the bootstrapper where --no-doc causes tests to be erroneously compiled with the abort panic strategy, since tests pass as expected with ./x.py test --stage 1 (--no-doc omitted)

This error can be also triggered with a subset of the test suite by running ./x.py test library/panic_abort --stage 1 --no-doc

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcC-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