about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-18 07:40:55 +0900
committerGitHub <noreply@github.com>2022-05-18 07:40:55 +0900
commitce49ce2f7ea1841950dd89937c7b4b343c273cbb (patch)
tree0ff1d428844a1656662e886fb7d77645c260db49 /compiler/rustc_mir_transform/src
parent4c5f6e6277b89e47d73a192078697f7a5f3dc0ac (diff)
parent774b525f6f5c7a8712349e67f53cfd75056fe079 (diff)
downloadrust-ce49ce2f7ea1841950dd89937c7b4b343c273cbb.tar.gz
rust-ce49ce2f7ea1841950dd89937c7b4b343c273cbb.zip
Rollup merge of #96647 - Enselic:fix-hrtb-for-wherepredicate, r=CraftSpider
rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate

Information about HRTBs are already present for `GenericBound:: TraitBound` and `FunctionPointer`. This PR adds HRTB info also to `WherePredicate::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 https://github.com/Enselic/public-api/pull/92).

I will be happy to add tests for this change (and bump `FORMAT_VERSION` which 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
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions