Skip to content

rustdoc: support for async Fn* trait bounds #127227

Open
@fmease

Description

@fmease

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

No one assigned

    Labels

    A-async-closures`async || {}`C-bugCategory: This is a bug.S-blockedStatus: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions