You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rustdoc lists empty opaque type for async fn #109931
Since beta 1.69.0 (and also in nightly), the rustdoc output has an empty opaque type listed. Take this code:
fnmain(){}asyncfnfoo(){}
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):
If you navigate to the opaque..html file manually, you get this:
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.
Activity
jyn514 commentedon Apr 4, 2023
cc @compiler-errors
compiler-errors commentedon Apr 4, 2023
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
compiler-errors commentedon Apr 4, 2023
Anyways I can fix this since I already looked at the code.
@rustbot claim
GuillaumeGomez commentedon Apr 4, 2023
I wasn't but it's great if you already have a solution. :)
Rollup merge of rust-lang#109937 - compiler-errors:rustdoc-rpit-cant-…
eholk commentedon Apr 10, 2023
Is this fixed as of #109937, or are we waiting for the backport to beta?
jyn514 commentedon Apr 10, 2023
Let's keep this open until the beta backport happens.
est31 commentedon Apr 17, 2023
Done, not in a beta backport but the stable PR directly: #110413 . Thanks everyone!