Fix intra-doc link

This commit is contained in:
Guillaume Gomez 2024-08-12 22:59:06 +02:00
parent 1d75f78ea2
commit 05fb8ff4f5

View File

@ -438,7 +438,7 @@ fn wrapped_rustc_command(rustc_wrappers: &[PathBuf], rustc_binary: &Path) -> Com
/// (if multiple doctests are merged), `main` function, /// (if multiple doctests are merged), `main` function,
/// and everything needed to calculate the compiler's command-line arguments. /// and everything needed to calculate the compiler's command-line arguments.
/// The `# ` prefix on boring lines has also been stripped. /// The `# ` prefix on boring lines has also been stripped.
struct RunnableDocTest { pub(crate) struct RunnableDocTest {
full_test_code: String, full_test_code: String,
full_test_line_offset: usize, full_test_line_offset: usize,
test_opts: IndividualTestOptions, test_opts: IndividualTestOptions,
@ -710,12 +710,11 @@ fn new(options: &RustdocOptions, test_id: &Option<String>, test_path: PathBuf) -
/// A doctest scraped from the code, ready to be turned into a runnable test. /// 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, /// [`run_merged_tests`] converts a bunch of scraped doctests to a single runnable doctest,
/// while [`generate_unique_doctest`] does the standalones. /// while [`generate_unique_doctest`] does the standalones.
/// ///
/// [`clean`]: crate::clean /// [`clean`]: crate::clean
/// [`RunnableDoctest`]: crate::doctest::RunnableDoctest
/// [`run_merged_tests`]: crate::doctest::runner::DocTestRunner::run_merged_tests /// [`run_merged_tests`]: crate::doctest::runner::DocTestRunner::run_merged_tests
/// [`generate_unique_doctest`]: crate::doctest::make::DocTestBuilder::generate_unique_doctest /// [`generate_unique_doctest`]: crate::doctest::make::DocTestBuilder::generate_unique_doctest
pub(crate) struct ScrapedDocTest { pub(crate) struct ScrapedDocTest {