about summary refs log tree commit diff
path: root/tests/rustdoc-json/enums
AgeCommit message (Collapse)AuthorLines
2025-07-15rustdoc-json: Structured attributesAlona Enraght-Moony-2/+2
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-05-28Stabilise `repr128`beetrees-3/+0
2025-03-22rustdoc: Use own logic to print `#[repr(..)]` attributes in JSON output.Predrag Gruevski-2/+2
2025-03-21tests/rustdoc-json: change assertions to use RFC 9535 jsonpathAlona Enraght-Moony-1/+1
2025-03-21tests/rustdoc-json: replace `$.index[*][?` with `$.index[?`Alona Enraght-Moony-227/+227
Done automatically with VSCode.
2025-03-10Fix pretty printing of parsed attrs in hir_prettyMichael Goulet-2/+2
2025-03-03Always allow rustdoc-json tests to contain long linesNoratrieb-11/+0
The rustdoc-json test syntax often requires very long lines, so the checks for long lines aren't really useful.
2025-02-24Fix rustdoc and clippyJana Dönszelmann-2/+2
2024-09-01rustdoc: normalise type/field names in rustdoc-json-types/jsondoclintschvv31n-9/+9
2024-07-19Update all rustdoc-json/ tests to use the new styleLeón Orell Valerian Liehr-228/+228
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-2/+2
2023-11-07tests/rustdoc-json: Remove more needless uses of `#![no_core]`.Alona Enraght-Moony-18/+0
These were'nt done with regex, but don't require changes to assertions.
2023-11-07tests/rustdoc-json: Remove some needless uses of `#![no_core]`.Alona Enraght-Moony-6/+0
Done by removing all uses of `#![no_core]`, and the reverting the ones that failed. More involved ones are in a later commit.
2023-10-31Accept less invalid Rust in rustdocOli Scherer-3/+12
2023-08-09rustdoc-json: Add tests for field/variant ordering.Alona Enraght-Moony-0/+78
2023-05-22Serialize all enums as externally tagged to guarantee compatibility with ↵Luca Palmieri-142/+146
binary formats such as bincode or postcard
2023-01-11Move /src/test to /testsAlbert Larsan-0/+371