| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-06-19 | Extract Translator struct | Cameron Steffen | -6/+3 | |
| 2025-06-10 | Improve naming of variables in `DocTestBuilder::generate_unique_doctest` | Guillaume Gomez | -3/+14 | |
| Improve code | ||||
| 2025-06-10 | Give more information into extracted doctest information | Guillaume Gomez | -39/+98 | |
| 2025-05-22 | Collect and use `#![doc(test(attr(..)))]` at module level too | Urgau | -3/+18 | |
| 2025-05-02 | Create a builder for DocTestBuilder type | Guillaume Gomez | -31/+93 | |
| 2025-05-02 | Emit a warning if the doctest `main` function will not be run | Guillaume Gomez | -6/+22 | |
| 2025-05-01 | rustdoc: Fix doctest heuristic for main fn wrapping | León Orell Valerian Liehr | -37/+28 | |
| 2025-04-27 | Fix bad handling of macros if there is already a `main` function | Guillaume Gomez | -1/+4 | |
| 2025-04-25 | If there is a `;` alone, we consider that the doctest needs to be put inside ↵ | Guillaume Gomez | -2/+0 | |
| a function | ||||
| 2025-04-25 | Improve code | Guillaume Gomez | -4/+7 | |
| 2025-04-23 | Fix detection of `main` function if there are expressions around it | Guillaume Gomez | -4/+17 | |
| 2025-04-17 | Replace infallible `name_or_empty` methods with fallible `name` methods. | Nicholas Nethercote | -9/+5 | |
| I'm removing empty identifiers everywhere, because in practice they always mean "no identifier" rather than "empty identifier". (An empty identifier is impossible.) It's better to use `Option` to mean "no identifier" because you then can't forget about the "no identifier" possibility. Some specifics: - When testing an attribute for a single name, the commit uses the `has_name` method. - When testing an attribute for multiple names, the commit uses the new `has_any_name` method. - When using `match` on an attribute, the match arms now have `Some` on them. In the tests, we now avoid printing empty identifiers by not printing the identifier in the `error:` line at all, instead letting the carets point out the problem. | ||||
| 2025-04-01 | Move `ast::Item::ident` into `ast::ItemKind`. | Nicholas Nethercote | -4/+4 | |
| `ast::Item` has an `ident` field. - It's always non-empty for these item kinds: `ExternCrate`, `Static`, `Const`, `Fn`, `Mod`, `TyAlias`, `Enum`, `Struct`, `Union`, `Trait`, `TraitAlias`, `MacroDef`, `Delegation`. - It's always empty for these item kinds: `Use`, `ForeignMod`, `GlobalAsm`, `Impl`, `MacCall`, `DelegationMac`. There is a similar story for `AssocItemKind` and `ForeignItemKind`. Some sites that handle items check for an empty ident, some don't. This is a very C-like way of doing things, but this is Rust, we have sum types, we can do this properly and never forget to check for the exceptional case and never YOLO possibly empty identifiers (or possibly dummy spans) around and hope that things will work out. The commit is large but it's mostly obvious plumbing work. Some notable things. - `ast::Item` got 8 bytes bigger. This could be avoided by boxing the fields within some of the `ast::ItemKind` variants (specifically: `Struct`, `Union`, `Enum`). I might do that in a follow-up; this commit is big enough already. - For the visitors: `FnKind` no longer needs an `ident` field because the `Fn` within how has one. - In the parser, the `ItemInfo` typedef is no longer needed. It was used in various places to return an `Ident` alongside an `ItemKind`, but now the `Ident` (if present) is within the `ItemKind`. - In a few places I renamed identifier variables called `name` (or `foo_name`) as `ident` (or `foo_ident`), to better match the type, and because `name` is normally used for `Symbol`s. It's confusing to see something like `foo_name.name`. | ||||
| 2025-03-27 | Only take outer attributes into account when generating content between ↵ | Guillaume Gomez | -3/+5 | |
| first non-crate items and the crate items | ||||
| 2025-03-27 | Remove recursion in `check_item` | Guillaume Gomez | -16/+4 | |
| 2025-03-27 | Improve code | Guillaume Gomez | -34/+29 | |
| 2025-03-27 | Add `expect` to the list of non-crate attributes for doctest generation | Guillaume Gomez | -1/+1 | |
| 2025-03-27 | Improve code comment | Guillaume Gomez | -2/+2 | |
| 2025-03-27 | Improve comment and test for generated doctest with code comments | Guillaume Gomez | -2/+3 | |
| 2025-03-27 | Correctly handle line comments in attributes and generate extern crates | Guillaume Gomez | -15/+35 | |
| outside of wrapping function | ||||
| 2025-03-27 | Correctly handle `fn main` in macro | Guillaume Gomez | -13/+30 | |
| 2025-03-27 | Greatly simplify doctest parsing and information extraction | Guillaume Gomez | -323/+136 | |
| 2025-02-28 | Fully qualify `Result` in generated doctest code | Guillaume Gomez | -1/+1 | |
| 2025-02-17 | librustdoc: more usages of `Joined::joined` | Yotam Ofek | -6/+10 | |
| 2025-02-03 | tree-wide: parallel: Fully removed all `Lrc`, replaced with `Arc` | Askar Safin | -3/+3 | |
| 2024-12-25 | Improve rustdoc code | Guillaume Gomez | -1/+1 | |
| 2024-12-16 | Remove unneeded handling of backlines in doctest attributes | Guillaume Gomez | -2/+0 | |
| 2024-12-16 | Also handle cases where attributes are unclosed | Guillaume Gomez | -16/+40 | |
| 2024-12-13 | Correctly handle comments in attributes in doctests source code | Guillaume Gomez | -0/+2 | |
| 2024-10-24 | Do not consider nested functions as `main` function even if named `main` in ↵ | Guillaume Gomez | -4/+11 | |
| doctests | ||||
| 2024-09-28 | Rename `standalone` doctest attribute into `standalone-crate` | Guillaume Gomez | -1/+1 | |
| 2024-09-22 | Reformat using the new identifier sorting from rustfmt | Michael Goulet | -3/+3 | |
| 2024-08-31 | Rollup merge of #129774 - nnethercote:rm-extern-crate-tracing-remainder, ↵ | Matthias Krüger | -0/+1 | |
| r=GuillaumeGomez Remove `#[macro_use] extern crate tracing` from rustdoc and rustfmt A follow-up to #129767 and earlier PRs doing this for `rustc_*` crates. r? ```@GuillaumeGomez``` | ||||
| 2024-08-30 | Remove `#[macro_use] extern crate tracing` from rustdoc. | Nicholas Nethercote | -0/+1 | |
| 2024-08-29 | Fix clippy lints | Guillaume Gomez | -1/+1 | |
| 2024-08-13 | Run fmt | Guillaume Gomez | -2/+1 | |
| 2024-08-13 | Improve code readability | Guillaume Gomez | -0/+8 | |
| 2024-08-13 | If there are crate attributes, we prevent doctest to be merged with others | Guillaume Gomez | -27/+4 | |
| 2024-08-13 | Rename `DocTest` into `DocTestBuilder` | Guillaume Gomez | -2/+2 | |
| 2024-08-13 | Add documentation on `DocTest` and `RunnableDoctest` structs | Guillaume Gomez | -0/+2 | |
| 2024-08-13 | Correctly handle macros using `$crate` in merged doctests | Guillaume Gomez | -3/+14 | |
| 2024-08-13 | Correctly handle `internal_features` attribute | Guillaume Gomez | -1/+13 | |
| 2024-08-13 | Don't merge doctests with `#[global_allocator]` | Guillaume Gomez | -69/+62 | |
| 2024-08-13 | Greatly improve handling of doctests attributes, making it possible to merge ↵ | Guillaume Gomez | -43/+105 | |
| doctests more efficiently | ||||
| 2024-08-13 | Simplify `has_main_fn` to be a boolean instead of a `Option<Span>` | Guillaume Gomez | -28/+30 | |
| 2024-08-13 | Correctly handle doctests with invalid AST | Guillaume Gomez | -3/+16 | |
| 2024-08-13 | If there is any AST error with a doctest, we make it a standalone test | Guillaume Gomez | -88/+182 | |
| To do so, AST error detection was improved in order to not filter out too many doctests. | ||||
| 2024-08-13 | Split standalone and mergeable doctests | Guillaume Gomez | -6/+13 | |
| 2024-08-13 | Split doctests between standalone and mergeable ones | Guillaume Gomez | -4/+2 | |
| 2024-08-13 | Add `DocTest` type | Guillaume Gomez | -128/+165 | |
