rustdoc: it would be nice to have a way to extract the doctest source without building it

f77a98b
Opened by Jeremy Fitzhardinge at 2024-08-29 22:59:22

It would be nice to have a way to extract the doctest sources into a file without compiling or running the test. I would like to integrate doctests into our current build system, and it looks like that would be easiest if I could extract the doc tests as source, then just build them as normal unit tests.