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

default impl not showing up in rustdoc #32974

Closed
jethrogb opened this issue Apr 14, 2016 · 3 comments
Closed

default impl not showing up in rustdoc #32974

jethrogb opened this issue Apr 14, 2016 · 3 comments

Comments

@jethrogb
Copy link
Contributor

For example, we have ToString:

impl<T: fmt::Display + ?Sized> ToString for T {
    fn to_string(&self) -> String { /*...*/ }
}

This shows up fine in stable: https://doc.rust-lang.org/stable/std/string/trait.ToString.html

However, starting in beta, we have a specializable version:

impl<T: fmt::Display + ?Sized> ToString for T {
    default fn to_string(&self) -> String { /*...*/ }
}

Which doesn't show up: https://doc.rust-lang.org/beta/std/string/trait.ToString.html

@apasel422
Copy link
Contributor

Is this related to #32841 and #29503?

@jethrogb
Copy link
Contributor Author

jethrogb commented Apr 15, 2016

Definitely a dupe of #32841, which I didn't find because it was unlabeled. Not sure if either of these is actually a dupe of #29503, since I suspect this is related to specialization.

@jethrogb
Copy link
Contributor Author

Not due to specialization, actually a regression, see e.g. https://doc.rust-lang.org/stable/std/any/trait.Any.html vs https://doc.rust-lang.org/nightly/std/any/trait.Any.html which does not use specialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants