Add option to set global no_run
for doc test
#70646
Labels
A-doctests
Area: Documentation tests, run by rustdoc
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
As this issue.
I want to guarantee all examples in external files can pass compiling, but I would not like to run them.
The main reason not to add no_run for each block is many markdown renders cannot correctly recognize a "rust,no_run" block.
So, could we add a option for
#[doc]
like#[doc(include = "../README.md", no_run)]
?The text was updated successfully, but these errors were encountered: