rustdoc-json: Default value of assoc type in blanket impls missing #98658
Labels
A-rustdoc-json
Area: Rustdoc JSON backend
C-bug
Category: This is a bug.
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.
Step-by-step
Run
cargo +nightly-2022-06-29 rustdoc -- -Z unstable-options --output-format json
with this insrc/lib.rs
:and inspect
target/doc/repro.json
.Expected result
There is an item for the
Error
of the blanket implimpl<T, U> const TryFrom<U> for T where U: ~const Into<T>
and it's default value isInfallible
.Actual
There is an item but the default value is missing. It looks like this:
When using
nightly-2022-06-28
instead ofnightly-2022-06-29
the information about the default value is present. It looks like this:This change, which in practice is a regression, is caused by #98577. But we can't revert it of course because that will result in ICEs which is even worse. So we need some kind of follow-up fix.
@rustbot labels +A-rustdoc-json +T-rustdoc +C-bug +requires-nightly
The text was updated successfully, but these errors were encountered: