cargo doc: shows different return types for re-exported methods #115760
Labels
A-async-await
Area: Async & Await
A-cross-crate-reexports
Area: Documentation that has been re-exported from a different crate
C-bug
Category: This is a bug.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Running
cargo doc
for theasync-net
andsmol
repositories show different return types forasync fn
methods.(Links to docs.rs provided below as a quick preview of the issue.)
Then browsing to the documentation for
UdpSocket::bind
in each, we see (using links from docs.rs):async_net::UdpSocket::bind
:smol::UdpSocket::bind
:I expected to see this happen: the same types should have been displayed.
Instead, this happened:
smol
's type is anasync fn
which returns aFuture
, which seems to conflict withasync-net
's definition.Meta
rustc --version --verbose
:Some discussion: https://users.rust-lang.org/t/cargo-doc-shows-different-return-for-re-exported-methods/99687
The text was updated successfully, but these errors were encountered: