rustdoc JSON: Support for &dyn for<'a> Trait<'a>
#99118
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
requires-nightly
This issue requires a nightly compiler in some way.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
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 thedyn
keywoard is used is not present either, unless one looks up0:1:1565
, in which case I guess it can be deduced thatdyn
is used. But it would be nice if that was made clearer.I think the best way to solve this would be to introduce a
DynTrait
object 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!
The text was updated successfully, but these errors were encountered: