summary refs log tree commit diff
path: root/src/librustdoc/doctest/make.rs
AgeCommit message (Expand)AuthorLines
2025-05-02rustdoc: Fix doctest heuristic for main fn wrappingLeón Orell Valerian Liehr-37/+28
2025-05-02Fix bad handling of macros if there is already a `main` functionGuillaume Gomez-1/+4
2025-05-02If there is a `;` alone, we consider that the doctest needs to be put inside ...Guillaume Gomez-2/+0
2025-05-02Improve codeGuillaume Gomez-4/+7
2025-05-02Fix detection of `main` function if there are expressions around itGuillaume Gomez-4/+17
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
2024-08-13Add `DocTest` typeGuillaume Gomez-128/+165
2024-08-13Clean up rustdoc make_test function codeGuillaume Gomez-21/+21
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-1/+1
2024-06-07run fmtGuillaume Gomez-18/+16
2024-06-07Parse full doctest source; extract helper for parsing codeNoah Lev-90/+104
2024-06-07Move logic for "making" doctests to submoduleNoah Lev-0/+381