Trait bounds of methods from Deref
impls are not rendered
#84630
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In #80653 methods from
Deref
targets were added torustdoc
output. However, it seems that trait bounds on these methods are not rendered.I tried this code:
I expected to see this happen:
The relevant methods added by the
Deref
impls onBaz
andQux
are added to the output ofrustdoc
. ForBaz
this isgeneric
, and forQux
this isgeneric
andwith_foo
(including the trait bound).Instead, this happened:
Both methods are visible in the documentation of
Baz
andQux
without a trait boundT: Foo
on thewith_foo
method.Meta
Tested with stable and nightly.
cargo rustc -- --version --verbose
:cargo +nightly rustc -- --version --verbose
:The text was updated successfully, but these errors were encountered: