summary refs log tree commit diff
path: root/src/librustdoc
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-04-17Use `eprint!` instead of `eprintln!`Guillaume Gomez-1/+1
2025-04-17Fix 2024 edition doctest panic outputGuillaume Gomez-3/+5
2025-03-28Rollup merge of #138678 - durin42:rmeta-stability, r=fmeaseMatthias Krüger-1/+2
2025-03-28Rollup merge of #138104 - GuillaumeGomez:simplify-doctest-parsing, r=fmeaseMatthias Krüger-357/+267
2025-03-27Auto merge of #139023 - jhpratt:rollup-4ou6ei4, r=jhprattbors-8/+5
2025-03-27Rollup merge of #138926 - nnethercote:less-kw-Empty-rustc_middle, r=lcnrJacob Pratt-6/+3
2025-03-27Only take outer attributes into account when generating content between first...Guillaume Gomez-120/+19
2025-03-27librustdoc: also stabilize iteration order hereAugie Fackler-1/+2
2025-03-27Remove recursion in `check_item`Guillaume Gomez-16/+4
2025-03-27Add new regression test for doctestGuillaume Gomez-0/+131
2025-03-27Auto merge of #138927 - nnethercote:rearrange-Item-ItemInner, r=GuillaumeGomezbors-37/+46
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-3/+26
2025-03-27Correctly handle line comments in attributes and generate extern cratesGuillaume Gomez-18/+62
2025-03-27Correctly handle `fn main` in macroGuillaume Gomez-18/+35
2025-03-27Greatly simplify doctest parsing and information extractionGuillaume Gomez-323/+136
2025-03-27Remove `kw::Empty` uses from `src/librustdoc`.Nicholas Nethercote-6/+3
2025-03-26expand: Leave traces when expanding `cfg` attributesVadim Petrochenkov-2/+2
2025-03-25Rollup merge of #138917 - nnethercote:rustdoc-remove-useless, r=GuillaumeGomezJacob Pratt-38/+38
2025-03-25Rollup merge of #138877 - TaKO8Ki:enable-per-target-ignores-for-doctests, r=n...Jacob Pratt-4/+5
2025-03-26rustdoc: Rearrange `Item`/`ItemInner`.Nicholas Nethercote-37/+46
2025-03-25rustdoc: remove useless `Symbol::is_empty` checks.Nicholas Nethercote-38/+38
2025-03-25ignore doctests only in specified targetsTakayuki Maeda-4/+5
2025-03-24Remove duplicated loop when computing doc cfgsGuillaume Gomez-38/+21
2025-03-23Rollup merge of #138574 - lolbinarycat:rustdoc-deref-24686-v2, r=GuillaumeGomezJacob Pratt-3/+32
2025-03-23Rollup merge of #138293 - clubby789:doc-cfg-gate, r=GuillaumeGomezMichael Goulet-11/+12
2025-03-22Rollup merge of #138468 - lolbinarycat:rustdoc-js-less-expect-error-part3, r=...Matthias Krüger-9/+70
2025-03-22rustdoc: Use own logic to print `#[repr(..)]` attributes in JSON output.Predrag Gruevski-8/+17
2025-03-22rustdoc: be more strict about "Methods from Deref"binarycat-3/+32
2025-03-22Rollup merge of #138535 - yotamofek:pr/rustdoc/lang-string-parse-cleanup, r=n...Matthias Krüger-44/+41
2025-03-19Use `Option<Ident>` for lowered param names.Nicholas Nethercote-11/+13
2025-03-18Auto merge of #138630 - matthiaskrgr:rollup-kk1gogr, r=matthiaskrgrbors-75/+90
2025-03-17Rollup merge of #138556 - charmitro:already-remapped-filename, r=GuillaumeGom...Matthias Krüger-2/+2
2025-03-17Rollup merge of #138384 - nnethercote:hir-ItemKind-idents, r=fmeaseMatthias Krüger-73/+88
2025-03-18Move `hir::Item::ident` into `hir::ItemKind`.Nicholas Nethercote-73/+88
2025-03-17Rollup merge of #138577 - aDotInTheVoid:deprecate-deprecations, r=GuillaumeGomezMatthias Krüger-10/+13
2025-03-17Rollup merge of #137449 - compiler-errors:control-flow, r=Amanieu,lnicolaMatthias Krüger-24/+24
2025-03-16Rollup merge of #136816 - yotamofek:pr/notable-traits-button-cleanup, r=aDotI...Jacob Pratt-21/+11
2025-03-16Fix ICE: attempted to remap an already remapped filenameCharalampos Mitrodimas-2/+2
2025-03-16rustdoc-json: Don't also include `#[deprecated]` in `Item::attrs`Alona Enraght-Moony-2/+9
2025-03-16rustdoc: Rename `Item::attributes` param to `is_json`Alona Enraght-Moony-8/+4
2025-03-16Suppress must_use in compiler and toolsMichael Goulet-24/+24
2025-03-15Add RTN support to rustdocMichael Goulet-30/+55