Skip to content

rustdoc: align the doctest runner with the test platform - #4279

Open
jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-doctest-runners
Open

jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:codex/upstream-doctest-runners

Conversation

@jrandolf

@jrandolf jrandolf commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Build the compiled-doctest runner for Bazel's test execution platform and preserve its executable suffix. Reject cross-built legacy doctests with a diagnostic explaining that they must use nightly compiled doctests, since legacy doctests execute the compiler during testing.

The Rustdoc analysis suite passes on macOS in stable-only, nightly-only, and Bazel 7.4.1 configurations. A current-Bazel platform regression fails with the old runner transition and passes with path mapping enabled. Compiled-only tests inherit the selected toolchain and run only when nightly compiled doctests are enabled. Windows execution remains for CI.

Closes #4293.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiled doctest runners use the compiler execution platform instead of the test platform

1 participant