about summary refs log tree commit diff
path: root/tests/rustdoc-json/attrs
AgeCommit message (Collapse)AuthorLines
2025-07-30rustdoc-json: Move `#[macro_export]` from `Other` to it's own variantAlona Enraght-Moony-2/+2
2025-07-30rustdoc-json: Add test for `#[macro_use]` attributeAlona Enraght-Moony-0/+40
2025-07-15rustdoc-json: Structured attributesAlona Enraght-Moony-50/+97
Implements https://www.github.com/rust-lang/rust/issues/141358. This has 2 primary benefits: 1. For rustdoc-json consumers, they no longer need to parse strings of attributes, but it's there in a structured and normalized way. 2. For rustc contributors, the output of HIR pretty printing is no longer a versioned thing in the output. People can work on https://github.com/rust-lang/rust/issues/131229 without needing to bump `FORMAT_VERSION`. (Over time, as the attribute refractor continues, I expect we'll add new things to `rustdoc_json_types::Attribute`. But this can be done separately to the rustc changes).
2025-07-13Auto merge of #143617 - aDotInTheVoid:devdesktoptestattr, r=Mark-Simulacrumbors-2/+0
Run `tests/rustdoc-json/attrs/target_features` on all hosts. Makes it more convenient to test rustdoc on non x86_64. I mainly care about the aarch64 dev-desktops. This works because rustdoc uses all target features, not just that of the target.
2025-07-11fix typos in function names in the `target_feature` testFluid-3/+3
2025-07-08Don't mark `#[target_feature]` safe fns as unsafe in rustdoc JSON.Predrag Gruevski-0/+23
2025-07-07Run `tests/rustdoc-json/attrs/target_features` on all hosts.Alona Enraght-Moony-2/+0
Makes it more convenient to test rustdoc on non x86_64. I mainly care about the aarch64 dev-desktops. This works because rustdoc uses all target features, not just that of the target.
2025-07-03Port `#[target_feature]` to the new attribute parsing infrastructureJonathan Brouwer-0/+17
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-29Port #[link_section] to the new attribute parsing infrastructureAnne Stijns-0/+15
2025-06-24Rollup merge of #142919 - aDotInTheVoid:cold-cold-attr-for-you, r=GuillaumeGomezGuillaume Gomez-0/+3
rustdoc-json: Add test for `#[cold]` Follow-up to https://github.com/rust-lang/rust/pull/142491 r? `@GuillaumeGomez` CC `@jdonszelmann`
2025-06-23rustdoc-json: Add test for `#[cold]`Alona Enraght-Moony-0/+3
Follow-up to https://www.github.com/rust-lang/rust/pull/142491
2025-06-23rustdoc-json: Add test for `#[optimize(..)]`Alona Enraght-Moony-0/+13
Follow up to https://www.github.com/rust-lang/rust/pull/138291
2025-06-22Port `#[must_use]` to new attribute parsing infrastructureJonathan Brouwer-2/+2
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-17fix clippyJana Dönszelmann-3/+3
2025-05-22rustdoc JSON: Don't apply `#[repr]` privacy heuristicsLeón Orell Valerian Liehr-37/+4
2025-05-21rustdoc-json: Remove false docs and add test for inline attributeAlona Enraght-Moony-0/+11
The docs about how `#[inline]` was represented isn't true. Updates the comment, and adds a test. CC https://www.github.com/rust-lang/rust/issues/137645
2025-05-07rustdoc-json: Remove newlines from attributesAlona Enraght-Moony-10/+10
2025-05-03Improve hir pretty-printing of attributes.Nicholas Nethercote-10/+10
2025-03-31rustdoc-json: Add test for #[automatically_derived] attributeAlona Enraght-Moony-0/+13
2025-03-22rustdoc: Use own logic to print `#[repr(..)]` attributes in JSON output.Predrag Gruevski-29/+45
2025-03-21tests/rustdoc-json: replace `$.index[*][?` with `$.index[?`Alona Enraght-Moony-49/+49
Done automatically with VSCode.
2025-03-18Rollup merge of #138569 - aDotInTheVoid:reprdoc-json, r=GuillaumeGomezMatthias Krüger-0/+163
rustdoc-json: Add tests for `#[repr(...)]` Works towards #137645 and #81359 Based on #138018, but with only the test changes. CC ```@obi1kenobi``` r? ```@GuillaumeGomez```
2025-03-16rustdoc-json: Don't also include `#[deprecated]` in `Item::attrs`Alona Enraght-Moony-8/+8
2025-03-16rustdoc-json: Add tests for `#[deprecated(...)]`Alona Enraght-Moony-0/+38
2025-03-16rustdoc-json: Add tests for `#[repr(...)]`Alona Enraght-Moony-0/+163
Co-authored-by: Predrag Gruevski <obi1kenobi82@gmail.com>
2025-03-05rustdoc: Add attribute-related tests for rustdoc JSON.Predrag Gruevski-0/+58