-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-async-closures`async || {}``async || {}`C-bugCategory: This is a bug.Category: This is a bug.S-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.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.
Description
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:
Metadata
Metadata
Assignees
Labels
A-async-closures`async || {}``async || {}`C-bugCategory: This is a bug.Category: This is a bug.S-blockedStatus: Blocked on something else such as an RFC or other implementation work.Status: Blocked on something else such as an RFC or other implementation work.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.