rustdoc thinks Deref extends to functions that use Pin<&mut Self>
#139458
Labels
A-associated-items
Area: Associated items (types, constants & functions)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
If type A has a function with the self parameter
Pin<&mut Self>
, e.g.fn close(self: Pin<&mut Self>)
, and type B implementsDeref<Target = A>
, then those functions will be listed in type B's rustdoc in the "Methods fromDeref<Target = A>
" section. This is incorrect behavior because type B cannot access those functions throughDeref
.The text was updated successfully, but these errors were encountered: