about summary refs log tree commit diff
path: root/src/librustdoc/doctest/make.rs
AgeCommit message (Expand)AuthorLines
2025-09-09Strip frontmatter in fewer placesLeón Orell Valerian Liehr-8/+11
2025-06-19Extract Translator structCameron Steffen-6/+3
2025-06-10Improve naming of variables in `DocTestBuilder::generate_unique_doctest`Guillaume Gomez-3/+14
2025-06-10Give more information into extracted doctest informationGuillaume Gomez-39/+98
2025-05-22Collect and use `#![doc(test(attr(..)))]` at module level tooUrgau-3/+18
2025-05-02Create a builder for DocTestBuilder typeGuillaume Gomez-31/+93
2025-05-02Emit a warning if the doctest `main` function will not be runGuillaume Gomez-6/+22
2025-05-01rustdoc: Fix doctest heuristic for main fn wrappingLeón Orell Valerian Liehr-37/+28
2025-04-27Fix bad handling of macros if there is already a `main` functionGuillaume Gomez-1/+4
2025-04-25If there is a `;` alone, we consider that the doctest needs to be put inside ...Guillaume Gomez-2/+0
2025-04-25Improve codeGuillaume Gomez-4/+7
2025-04-23Fix detection of `main` function if there are expressions around itGuillaume Gomez-4/+17
2025-04-17Replace infallible `name_or_empty` methods with fallible `name` methods.Nicholas Nethercote-9/+5
2025-04-01Move `ast::Item::ident` into `ast::ItemKind`.Nicholas Nethercote-4/+4
2025-03-27Only take outer attributes into account when generating content between first...Guillaume Gomez-3/+5
2025-03-27Remove recursion in `check_item`Guillaume Gomez-16/+4
2025-03-27Improve codeGuillaume Gomez-34/+29
2025-03-27Add `expect` to the list of non-crate attributes for doctest generationGuillaume Gomez-1/+1
2025-03-27Improve code commentGuillaume Gomez-2/+2
2025-03-27Improve comment and test for generated doctest with code commentsGuillaume Gomez-2/+3
2025-03-27Correctly handle line comments in attributes and generate extern cratesGuillaume Gomez-15/+35
2025-03-27Correctly handle `fn main` in macroGuillaume Gomez-13/+30
2025-03-27Greatly simplify doctest parsing and information extractionGuillaume Gomez-323/+136
2025-02-28Fully qualify `Result` in generated doctest codeGuillaume Gomez-1/+1
2025-02-17librustdoc: more usages of `Joined::joined`Yotam Ofek-6/+10
2025-02-03tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc`Askar Safin-3/+3
2024-12-25Improve rustdoc codeGuillaume Gomez-1/+1
2024-12-16Remove unneeded handling of backlines in doctest attributesGuillaume Gomez-2/+0
2024-12-16Also handle cases where attributes are unclosedGuillaume Gomez-16/+40
2024-12-13Correctly handle comments in attributes in doctests source codeGuillaume Gomez-0/+2
2024-10-24Do not consider nested functions as `main` function even if named `main` in d...Guillaume Gomez-4/+11
2024-09-28Rename `standalone` doctest attribute into `standalone-crate`Guillaume Gomez-1/+1
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-3/+3
2024-08-31Rollup merge of #129774 - nnethercote:rm-extern-crate-tracing-remainder, r=Gu...Matthias Krüger-0/+1
2024-08-30Remove `#[macro_use] extern crate tracing` from rustdoc.Nicholas Nethercote-0/+1
2024-08-29Fix clippy lintsGuillaume Gomez-1/+1
2024-08-13Run fmtGuillaume Gomez-2/+1
2024-08-13Improve code readabilityGuillaume Gomez-0/+8
2024-08-13If there are crate attributes, we prevent doctest to be merged with othersGuillaume Gomez-27/+4
2024-08-13Rename `DocTest` into `DocTestBuilder`Guillaume Gomez-2/+2
2024-08-13Add documentation on `DocTest` and `RunnableDoctest` structsGuillaume Gomez-0/+2
2024-08-13Correctly handle macros using `$crate` in merged doctestsGuillaume Gomez-3/+14
2024-08-13Correctly handle `internal_features` attributeGuillaume Gomez-1/+13
2024-08-13Don't merge doctests with `#[global_allocator]`Guillaume Gomez-69/+62
2024-08-13Greatly improve handling of doctests attributes, making it possible to merge ...Guillaume Gomez-43/+105
2024-08-13Simplify `has_main_fn` to be a boolean instead of a `Option<Span>`Guillaume Gomez-28/+30
2024-08-13Correctly handle doctests with invalid ASTGuillaume Gomez-3/+16
2024-08-13If there is any AST error with a doctest, we make it a standalone testGuillaume Gomez-88/+182
2024-08-13Split standalone and mergeable doctestsGuillaume Gomez-6/+13
2024-08-13Split doctests between standalone and mergeable onesGuillaume Gomez-4/+2