rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate#96647
rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate#96647bors merged 3 commits intorust-lang:masterfrom
Conversation
|
rustdoc-json-types is a public (although nightly-only) API. If possible, consider changing |
|
(rust-highfive has picked a reviewer for you, use r? to override) |
|
Overall looks good, but as you say, it needs a format version bump, and tests. Idealy tests not just for the new field, but for the pre-existing ones you commented on, as I don't think we have anything covers does them. |
|
Thank you for taking an early look. Next, I will add tests for all HRTB fields. @rustbot label +S-waiting-on-author -S-waiting-on-review |
7c9b52a to
774b525
Compare
|
r? @CraftSpider |
|
Is @CraftSpider the right reviewer? Or should I set you instead @aDotInTheVoid ? |
|
I don't have bors privileges. Craftspider generally reviews rustdoc-json stuff. |
|
Yes, thanks for the patience. I moved recently, and sometimes take a bit of time on reviews. I'll get this reviewed tonight. |
|
@bors r+ |
|
📌 Commit 774b525 has been approved by |
Rollup of 7 pull requests Successful merges: - rust-lang#96647 (rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate) - rust-lang#96651 (Omit unnecessary help to add `#[cfg(test)]` when already annotated) - rust-lang#96761 (rustdoc: don't build `rayon` for non-windows targets) - rust-lang#97096 (Types with reachable constructors are reachable) - rust-lang#97097 (Add tmm_reg clobbers) - rust-lang#97113 (Search GUI fixes) - rust-lang#97116 (interpret/validity: reject references to uninhabited types) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Information about HRTBs are already present for
GenericBound:: TraitBoundandFunctionPointer. This PR adds HRTB info also toWherePredicate::BoundPredicate.Use the same field name and type as for the other ones (
generic_params: Vec<GenericParamDef>). I have verified that this gives rustdoc JSON clients the data they need and in a format that is easy to work with (see Enselic/public-api#92).I will be happy to add tests for this change (and bump
FORMAT_VERSIONwhich I just realized I forgot), but it is always nice to get one round of feedback first, so that I don't put a lot of effort into tests that then have to be discarded.@rustbot modify labels: +T-rustdoc +A-rustdoc-json