Skip to content

Commit 05fb8ff

Browse files
Fix intra-doc link
1 parent 1d75f78 commit 05fb8ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustdoc/doctest.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ fn wrapped_rustc_command(rustc_wrappers: &[PathBuf], rustc_binary: &Path) -> Com
438438
/// (if multiple doctests are merged), `main` function,
439439
/// and everything needed to calculate the compiler's command-line arguments.
440440
/// The `# ` prefix on boring lines has also been stripped.
441-
struct RunnableDocTest {
441+
pub(crate) struct RunnableDocTest {
442442
full_test_code: String,
443443
full_test_line_offset: usize,
444444
test_opts: IndividualTestOptions,
@@ -710,12 +710,11 @@ impl IndividualTestOptions {
710710

711711
/// A doctest scraped from the code, ready to be turned into a runnable test.
712712
///
713-
/// The pipeline goes: [`clean`] AST -> `ScrapedDoctest` -> [`RunnableDoctest`].
713+
/// The pipeline goes: [`clean`] AST -> `ScrapedDoctest` -> `RunnableDoctest`.
714714
/// [`run_merged_tests`] converts a bunch of scraped doctests to a single runnable doctest,
715715
/// while [`generate_unique_doctest`] does the standalones.
716716
///
717717
/// [`clean`]: crate::clean
718-
/// [`RunnableDoctest`]: crate::doctest::RunnableDoctest
719718
/// [`run_merged_tests`]: crate::doctest::runner::DocTestRunner::run_merged_tests
720719
/// [`generate_unique_doctest`]: crate::doctest::make::DocTestBuilder::generate_unique_doctest
721720
pub(crate) struct ScrapedDocTest {

0 commit comments

Comments
 (0)