Skip to content

rustdoc shows __arg0 for mutable parameter to async function #77533

@Hawk777

Description

@Hawk777

I tried this code:

/// Does a thing.
pub async fn do_thing(mut x: u32) {
	x
}

I expected to see this happen: In the Rustdoc output, a parameter named x.

Instead, this happened: In the Rustdoc output, pub async fn do_thing(__arg0: u32).

Meta

rustc --version --verbose:

rustc 1.46.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.46.0
LLVM version: 10.0

Metadata

Metadata

Assignees

Labels

A-async-awaitArea: Async & AwaitC-bugCategory: This is a bug.P-mediumMedium priorityT-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