Skip to content

Callback parameter names are missing from rustdoc #44570

Closed
@dtolnay

Description

@dtolnay

Reported in https://users.rust-lang.org/t/giving-names-to-callback-parameters/12877.

pub fn f(callback: fn(len: usize)) {}

Rustdoc shows this as:

pub fn f(callback: fn(_: usize))

This is with rustc 1.22.0-nightly (539f208 2017-09-13).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-dev-toolsRelevant to the dev-tools subteam, which will review and decide on the PR/issue.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