summary refs log tree commit diff
path: root/src/librustdoc/doctest
AgeCommit message (Expand)AuthorLines
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-4/+6
2024-08-20Remove unneeded conversion to `DefId` for `ExtraInfo`Guillaume Gomez-1/+1
2024-08-17Remove useless attributes in merged doctest generated codeGuillaume Gomez-4/+0
2024-08-13Run fmtGuillaume Gomez-6/+7
2024-08-13Move `is_multiple_tests` argument into `RunnableDocTest`Guillaume Gomez-7/+3
2024-08-13Unify naming of `DocTest`Guillaume Gomez-18/+17
2024-08-13Remove need for `unsafe` code in merged doctestsGuillaume Gomez-5/+10
2024-08-13Improve code readabilityGuillaume Gomez-0/+9
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-9/+14
2024-08-13Reduce merged doctest source code sizeGuillaume Gomez-25/+7
2024-08-13Add documentation on `DocTest` and `RunnableDoctest` structsGuillaume Gomez-0/+2
2024-08-13Improve code by removing unneeded function argumentsGuillaume Gomez-2/+0
2024-08-13Correctly handle macros using `$crate` in merged doctestsGuillaume Gomez-3/+14
2024-08-13If no argument is provided to merged doctests binary, they will be run in the...Guillaume Gomez-6/+4
2024-08-13Correctly handle `internal_features` attributeGuillaume Gomez-1/+13
2024-08-13Don't change indent in merged doctestsGuillaume Gomez-1/+1
2024-08-13Make merged doctests run in their own processGuillaume Gomez-15/+81
2024-08-13Fix weird memory allocation failure in merged doctests by storing doctest lis...Guillaume Gomez-8/+8
2024-08-13Don't merge doctests with `#[global_allocator]`Guillaume Gomez-75/+70
2024-08-13Greatly improve handling of doctests attributes, making it possible to merge ...Guillaume Gomez-45/+112
2024-08-13Simplify `has_main_fn` to be a boolean instead of a `Option<Span>`Guillaume Gomez-29/+31
2024-08-13Correctly handle doctests with invalid ASTGuillaume Gomez-4/+17
2024-08-13If there is any AST error with a doctest, we make it a standalone testGuillaume Gomez-88/+182
2024-08-13Prevent merged doctests to break stdin if the generated file is too bigGuillaume Gomez-3/+8
2024-08-13Split doctests into two categories: mergeable ones and standalone onesGuillaume Gomez-22/+56
2024-08-13Split standalone and mergeable doctestsGuillaume Gomez-19/+208
2024-08-13Split doctests between standalone and mergeable onesGuillaume Gomez-6/+4
2024-08-13Simplify doctest testsGuillaume Gomez-27/+24
2024-08-13Add `DocTest` typeGuillaume Gomez-130/+181
2024-08-13Clean up rustdoc make_test function codeGuillaume Gomez-21/+21
2024-07-29Reformat `use` declarations.Nicholas Nethercote-3/+6
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-1/+1
2024-06-09rustdoc: Add support for --remap-path-prefixEdward Shen-5/+7
2024-06-07run fmtGuillaume Gomez-18/+16
2024-06-07Fix broken rustdoc unit testsNoah Lev-22/+37
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
2024-06-07Move some arguments to fields and reorganize fieldsNoah Lev-12/+14
2024-06-07rustdoc: Remove `DoctestVisitor::get_line`Noah Lev-14/+13
2024-06-07Merge `RustDoctest` and `MdDoctest` into one typeNoah Lev-23/+7
2024-06-07rustdoc: Extract actual doctest running logic into functionNoah Lev-3/+9
2024-06-07Separate doctest collection from runningNoah Lev-42/+201
2024-06-07Move Markdown-specific doctest code into submoduleNoah Lev-0/+46
2024-06-07Start moving format-specific code into doctest submoduleNoah Lev-0/+127
2024-02-15add extra indent spaces for rust-playground linkyukang-1/+43
2023-04-25pass `unused_extern_crates` in `librustdoc::doctest::make_test`ozkanonur-0/+4
2021-12-12Rename `TestOptions` to `GlobalTestOptions`Noah Lev-17/+17