Skip to content

rustdoc doesn't show explicit elided lifetimes in function signatures #75225

Closed
@Nemo157

Description

@Nemo157

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.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions