-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Rustdoc lists empty opaque type for async fn #109931
Copy link
Copy link
Closed
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.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.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Milestone
Description
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-impl-traitArea: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.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.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Since beta 1.69.0 (and also in nightly), the rustdoc output has an empty opaque type listed. Take this code:
Then save it as
main.rsand do:There will be an empty opaque type listed, which is not clickable like the other things (probably due to being empty):
If you navigate to the
opaque..htmlfile manually, you get this:It also reproduces on current nightly as of filing this bug. And also for
cargo init --binfollowed by adding an async function and thencargo +beta doc. The option to document private items is important.@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged +T-rustdoc