-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
rustdoc JSON: Support for &dyn for<'a> Trait<'a> #99118
Copy link
Copy link
Closed
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.
If we generate rustdoc JSON for this lib.rs:
with the command:
we will get this rustdoc JSON in doc/lib.json for the function input parameters:
as can be seen, the
for<'a>part is absent. Info about that thedynkeywoard is used is not present either, unless one looks up0:1:1565, in which case I guess it can be deduced thatdynis used. But it would be nice if that was made clearer.I think the best way to solve this would be to introduce a
DynTraitobject of some kind to rustdoc JSON, as was done for rustdoc HTML in 4ea2748.@rustbot labels +A-rustdoc-json +T-rustdoc +C-enhancement +requires-nightly
For reference, the full rustdoc JSON output can be seen below.
Click to expand!