Skip to content

Rustdoc lists empty opaque type for async fn #109931

Closed

Description

@est31

Since beta 1.69.0 (and also in nightly), the rustdoc output has an empty opaque type listed. Take this code:

fn main() {}
async fn foo() {}

Then save it as main.rs and do:

rustdoc +beta main.rs --crate-type bin --edition=2021 --document-private-items

There will be an empty opaque type listed, which is not clickable like the other things (probably due to being empty):

Screenshot_20230404_114551

If you navigate to the opaque..html file manually, you get this:

Screenshot_20230404_114451

It also reproduces on current nightly as of filing this bug. And also for cargo init --bin followed by adding an async function and then cargo +beta doc. The option to document private items is important.

@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged +T-rustdoc

Activity

  1. added
    C-bugCategory: This is a bug.
    regression-untriagedUntriaged performance or correctness regression.
    on Apr 4, 2023
  2. added
    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    and removed
    regression-untriagedUntriaged performance or correctness regression.
    on Apr 4, 2023
  3. added
    A-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    on Apr 4, 2023
  4. jyn514 commented on Apr 4, 2023

    @jyn514
    Member
  5. compiler-errors commented on Apr 4, 2023

    @compiler-errors
    Contributor

    Not sure why I was preemptively pinged, but @GuillaumeGomez regressed this in #104889.

    searched nightlies: from nightly-2022-11-01 to nightly-2023-04-04
    regressed nightly: nightly-2022-12-23
    searched commit range: b569c9d...8a97b48
    regressed commit: cce9e72

  6. compiler-errors commented on Apr 4, 2023

    @compiler-errors
    Contributor

    Anyways I can fix this since I already looked at the code.

    @rustbot claim

  7. GuillaumeGomez commented on Apr 4, 2023

    @GuillaumeGomez
    Member

    I wasn't but it's great if you already have a solution. :)

  8. removed
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    on Apr 4, 2023
  9. added a commit that references this issue on Apr 4, 2023
  10. eholk commented on Apr 10, 2023

    @eholk
    Contributor

    Is this fixed as of #109937, or are we waiting for the backport to beta?

  11. added
    AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.
    on Apr 10, 2023
  12. added this to the 1.69.0 milestone on Apr 10, 2023
  13. jyn514 commented on Apr 10, 2023

    @jyn514
    Member

    Let's keep this open until the beta backport happens.

  14. est31 commented on Apr 17, 2023

    @est31
    MemberAuthor

    Done, not in a beta backport but the stable PR directly: #110413 . Thanks everyone!

  15. removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

A-async-awaitArea: Async & AwaitA-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions