-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Blanket trait impls are not listed as implementations in rustdoc #29503
Comments
It regressed on nightly, it also disappeard from the libstd page. |
The regression is not due to specialization, 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. Regression is also visible on beta btw. |
@flying-sheep Yes, it's the same bug. |
thanks. a bit confusing, since that impl is the whole point of my crate 😄 |
In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: rust-lang#29503
rustdoc: do not strip blanket impls in crate of origin In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: rust-lang#29503
rustdoc: do not strip blanket impls in crate of origin In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: rust-lang#29503
rustdoc: do not strip blanket impls in crate of origin In `impl<T> Trait for T`, the blanket type parameters `T` were recognized as "local" and "not exported", so these impls were thrown out. Now we check if they are generic, and keep them in that case. Fixes: rust-lang#29503
The regression was already fixed in #33133 |
ToString
has the implementationimpl<T: fmt::Display + ?Sized> ToString for T
which is not listed in its documentation page.It is however listed in libstd, so rustdoc does the correct thing after doc inlining.
This bug with blanket impls shows up in user's crates, see discussion on users.rust-lang; for example the
Itertools
trait in itertools does not have its blanket impl visible in the docs.The text was updated successfully, but these errors were encountered: