about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-16 17:06:37 +0200
committerGitHub <noreply@github.com>2025-07-16 17:06:37 +0200
commit9f2015d3d3884e17044be61926292f7b7a41bdc8 (patch)
tree51544d8ecf71314ddd9554ce66f0e919a491c2d2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent1c6de215099bbe33668de762f9591187f6c25eef (diff)
parent078332fdc8e11f7ff8253c019085098538ec3c2a (diff)
downloadrust-9f2015d3d3884e17044be61926292f7b7a41bdc8.tar.gz
rust-9f2015d3d3884e17044be61926292f7b7a41bdc8.zip
Rollup merge of #142936 - aDotInTheVoid:rdj-shatts-forrealthistime, r=GuillaumeGomez
rustdoc-json: Structured attributes

Implements and closes rust-lang/rust#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. CC ```@obi1kenobi```
2. For rustc conributors, the output of HIR pretty printing is no longer a versioned thing in the output. People can work on rust-lang/rust#131229 without needing to bump `FORMAT_VERSION`. CC ```@jdonszelmann``` ```@JonathanBrouwer.```

(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).

Todo before being mergable:
- [x] Update test assertions.
- [x] Fix modeling of `#[repr]`.
- [ ] ~~Add tests of `#[doc(hidden)]` in `Item::attrs` (probably in a seperate PR).~~ I'm gonna punt this to a future PR
- [x] Documentation.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions