Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: support for async Fn* trait bounds #127227

Open
fmease opened this issue Jul 1, 2024 · 3 comments
Open

rustdoc: support for async Fn* trait bounds #127227

fmease opened this issue Jul 1, 2024 · 3 comments
Labels
C-bug Category: This is a bug. F-async_closure `#![feature(async_closure)]` S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@fmease
Copy link
Member

fmease commented Jul 1, 2024

Source:

#![feature(async_closure)]

pub fn demo(_: impl async Fn() -> i32) {}

Current rendered output (local, etc. — more generally: HIR-based) below (issue: dropping the trait bound modifier async).

pub fn demo(_: impl Fn() -> i32)

Current rendered output (inlined cross-crate re-export, etc. — more generally: middle-based) below (issue: leaking the internal desugaring):

pub fn demo(_: impl AsyncFn<(), Output = i32>)

Tracking:

@fmease fmease added T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. C-bug Category: This is a bug. F-async_closure `#![feature(async_closure)]` labels Jul 1, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 1, 2024
@fmease fmease removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 1, 2024
@fmease
Copy link
Member Author

fmease commented Jul 1, 2024

I consider this issue to be partially blocked: Please don't try to add async Fn* support for inlined cross-crate reexports — more generally: middle-based cleaning — before I fix #113015 (which should happen very soon!).

@fmease
Copy link
Member Author

fmease commented Jul 12, 2024

Blocking this on for<> async vs. async for<>: #127054 (in lang-FCP-merge)
@rustbot blocked

@rustbot

This comment was marked as resolved.

@fmease fmease added the S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. F-async_closure `#![feature(async_closure)]` S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants