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 for impl Trait in argument position is broken #49309

Closed
sinkuu opened this issue Mar 23, 2018 · 0 comments
Closed

Rustdoc for impl Trait in argument position is broken #49309

sinkuu opened this issue Mar 23, 2018 · 0 comments
Labels
C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@sinkuu
Copy link
Contributor

sinkuu commented Mar 23, 2018

pub fn foo(_x: impl Clone, _y: i32, _z: impl Copy) {
}

Running rustdoc on this code generates the following documentation:

@stokhos stokhos added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Mar 23, 2018
@cuviper cuviper added C-bug Category: This is a bug. T-dev-tools-rustdoc labels Mar 24, 2018
bors added a commit that referenced this issue Mar 28, 2018
Rustdoc support for universal_impl_trait

Hides type parameters synthesized by `impl Trait`-in-argument-position, and enables links to trait names.

<img alt="before" src="https://user-images.githubusercontent.com/7091080/37831646-a61413c6-2ee9-11e8-8ec2-a6137956d922.png" width="450"/>
↓
<img alt="after" src="https://user-images.githubusercontent.com/7091080/37831657-b2ff0ae6-2ee9-11e8-8797-fdad904782bf.png" width="450"/>

Fixes #49309
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. 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

3 participants