about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-08-12 22:59:06 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-08-13 20:14:58 +0200
commit05fb8ff4f5602ebf470f6c870906aef9df16d8db (patch)
treee760cc3efced2c64d55200a5f319850936baa75b /src
parent1d75f78ea26f79b21f63cdc45bd3f711d0bd3f20 (diff)
downloadrust-05fb8ff4f5602ebf470f6c870906aef9df16d8db.tar.gz
rust-05fb8ff4f5602ebf470f6c870906aef9df16d8db.zip
Fix intra-doc link
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/doctest.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs
index 29cece6faaa..743c1ed507e 100644
--- a/src/librustdoc/doctest.rs
+++ b/src/librustdoc/doctest.rs
@@ -438,7 +438,7 @@ fn wrapped_rustc_command(rustc_wrappers: &[PathBuf], rustc_binary: &Path) -> Com
 /// (if multiple doctests are merged), `main` function,
 /// and everything needed to calculate the compiler's command-line arguments.
 /// The `# ` prefix on boring lines has also been stripped.
-struct RunnableDocTest {
+pub(crate) struct RunnableDocTest {
     full_test_code: String,
     full_test_line_offset: usize,
     test_opts: IndividualTestOptions,
@@ -710,12 +710,11 @@ impl IndividualTestOptions {
 
 /// A doctest scraped from the code, ready to be turned into a runnable test.
 ///
-/// The pipeline goes: [`clean`] AST -> `ScrapedDoctest` -> [`RunnableDoctest`].
+/// The pipeline goes: [`clean`] AST -> `ScrapedDoctest` -> `RunnableDoctest`.
 /// [`run_merged_tests`] converts a bunch of scraped doctests to a single runnable doctest,
 /// while [`generate_unique_doctest`] does the standalones.
 ///
 /// [`clean`]: crate::clean
-/// [`RunnableDoctest`]: crate::doctest::RunnableDoctest
 /// [`run_merged_tests`]: crate::doctest::runner::DocTestRunner::run_merged_tests
 /// [`generate_unique_doctest`]: crate::doctest::make::DocTestBuilder::generate_unique_doctest
 pub(crate) struct ScrapedDocTest {