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 replaces aliases used as trait type parameters #83675

Closed
tspiteri opened this issue Mar 30, 2021 · 1 comment
Closed

rustdoc replaces aliases used as trait type parameters #83675

tspiteri opened this issue Mar 30, 2021 · 1 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.

Comments

@tspiteri
Copy link
Contributor

use std::os::raw::c_long;

pub struct S(c_long);

impl From<c_long> for S {
    fn from(i: c_long) -> S { S(i) }
}

The documentation for the S trait implementations looks like this:

image

While the from function itself is documented correctly to take a parameter of type c_long, the From trait has type parameter i64 instead of c_long. I expected it to be impl From<c_long> for S instead.

Meta

rustc +nightly --version:

rustc 1.53.0-nightly (4a20eb6a9 2021-03-28)
@tspiteri tspiteri added the C-bug Category: This is a bug. label Mar 30, 2021
@jonas-schievink jonas-schievink added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Mar 30, 2021
@jyn514
Copy link
Member

jyn514 commented Mar 30, 2021

Duplicate of #80557.

@jyn514 jyn514 closed this as completed Mar 30, 2021
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