Skip to content

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

Closed

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)

Activity

  1. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    on Aug 6, 2020
  2. nbdd0121 commented on Aug 6, 2020

    @nbdd0121
    Member

    @rustbot claim

  3. added a commit that references this issue on Aug 8, 2020
    255434d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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