-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
I tried this code:
pub fn split(&mut self) -> (ReadHalf<'_>, WriteHalf<'_>) { ... }
I expected to see this happen: the documentation to show the explicit elided lifetime
Instead, this happened: the lifetime disappeared (https://docs.rs/tokio/0.2.22/tokio/net/struct.TcpStream.html#method.split)
If anything, to go with Rust 2018 idioms it seems like rustdoc should be adding this explicit elided lifetime if it was left implicit.
Meta
rustc 1.47.0-nightly (8ad7bc3f4 2020-07-21)
docsrs 0.6.0 (c9e59af 2020-07-19)
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.