Repository navigation
Description
FIXME: Write a proper synopsis.
Original description
The flag was added in the second commit of #64328, but I couldn't find a tracking issue (like #87022 for --no-run).
Is it meant to be stabilized?
- If yes: please feel free to reuse this as the tracking issue like in the
--no-runone. - If not: we are currently using it (together with
--no-run) in the kernel to extract the source code of the tests, i.e. to achieve something similar to--persist-doctests, but for source code; or like--scrape-examples, but for doctests. Would there be a better/stable way to do that?
In the PR above [@]Mark-Simulacrum mentions:
This is largely intended for "advanced" users at this point (I'm not sure if we'll ever stabilize it)
[@]GuillaumeGomez
Note
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports.
Instead, open a dedicated issue for the specific matter or post in the #t-rustdoc Zulip channel.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.
Steps
- Implementation PR
- Stabilization PR
Implementation history
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
GuillaumeGomez commentedon Oct 12, 2022
I don't think it was intended for being stabilized.
Mark-Simulacrum commentedon Oct 12, 2022
That PR tried to make it unstable (see the call to unstable in lib.rs), so we should track down the gap or PR that stabilized it.
[-]rustdoc: Tracking Issue for `--test-builder`?[/-][+]Tracking Issue for rustdoc `--test-builder`[/+]aDotInTheVoid commentedon Nov 18, 2024
Relevent zulip discussion on rust-for-linux's use of this to enable running doctests in kernelspace.
Rollup merge of rust-lang#133191 - aDotInTheVoid:whoops-thats-not-sta…
Unrolled build for rust-lang#133191
[-]Tracking Issue for rustdoc `--test-builder`[/-][+]rustdoc: Tracking issue for command-line flag `--test-builder`[/+]Fethbita commentedon Oct 15, 2025
When running
--test-builderwithout a runnable executable, the compiler panics and prints an error like so:Command was found and ran from #56232 (comment) but I had forgotten to
chmod +xthe script.Rollup merge of rust-lang#147912 - GuillaumeGomez:graceful-doctest-er…
Rollup merge of rust-lang#147912 - GuillaumeGomez:graceful-doctest-er…
Unrolled build for #147912