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 shows __arg0 for mutable parameter to async function #77533

Closed
Hawk777 opened this issue Oct 4, 2020 · 3 comments
Closed

rustdoc shows __arg0 for mutable parameter to async function #77533

Hawk777 opened this issue Oct 4, 2020 · 3 comments
Assignees
Labels
A-async-await Area: Async & Await C-bug Category: This is a bug. P-medium Medium priority T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Hawk777
Copy link

Hawk777 commented Oct 4, 2020

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
@Hawk777 Hawk777 added the C-bug Category: This is a bug. label Oct 4, 2020
@jonas-schievink jonas-schievink added A-async-await Area: Async & Await T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Oct 4, 2020
@camelid
Copy link
Member

camelid commented Oct 4, 2020

Minimized to:

async fn foo(mut x: i32) {}

@camelid camelid added the P-medium Medium priority label Oct 4, 2020
@camelid
Copy link
Member

camelid commented Oct 4, 2020

Applying P-medium since I think this is important to fix.

@camelid camelid self-assigned this Oct 5, 2020
@jyn514
Copy link
Member

jyn514 commented Oct 5, 2020

Duplicate of #76517

@jyn514 jyn514 marked this as a duplicate of #76517 Oct 5, 2020
@jyn514 jyn514 closed this as completed Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-async-await Area: Async & Await C-bug Category: This is a bug. P-medium Medium priority 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

4 participants