rustdoc-json: Don't include #[deprecated]
in Item::attrs
, as it's already in Item::deprecation
#138378
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
This function:
After runing
rustdoc -wjson
givesWe include
"attrs": ["#[attr = Deprecation {deprecation: Deprecation {since:\nNonStandard(\"yoinks ago\")}}]\n"],
, but this is redundant because it's also availible (in a better, more structed format) as"deprecation": {"note": null, "since": "yoinks ago"},
We should remove this info from
attrs
, and only provide it indeprecation
.CC @obi1kenobi
Here's the bones of a testcase because I started on this this evening but it's too late to finish
The text was updated successfully, but these errors were encountered: