-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Hidden methods still appear in trait implementation docs #13698
Comments
This is broken again. |
Still happens, example down here: http://mitsuhiko.github.io/redis-rs/redis/enum.ErrorKind.html |
It looks like this is happening again in #51147 (comment). |
@SimonSapin Do you remember what was the issue on #51147? Seems https://doc.rust-lang.org/nightly/std/slice/trait.SliceIndex.html |
In #51147 we wanted to hide |
I see. Hiding |
Yes, these methods are permanently-unstable implementation details of methods like |
Rustdoc should be able to handle that. Fixes rust-lang#13698.
Probably these need to strip methods that are inherited from hidden methods. https://github.com/rust-lang/rust/blob/master/src/librustdoc/passes/strip_hidden.rs |
@GuillaumeGomez I was looking into this as a way of better understanding rustdoc internals. Do you plan to tackle it? |
Go ahead! I have a lot of other things to do. :) |
@GuillaumeGomez suggests that making If that's the case, should this issue be closed? |
From my point of view, it should. Let's close it now and if someone wants to debate, I'll let the comments open. |
rust-lang#13698) Two changes to `redundant_guards`: - Lint float literals. We used to do that before but that was changed in rust-lang#11305 because at the time there was a future compat warning and it was planned to make pattern matching floats a hard error. In rust-lang#116284 it was decided to actually remove the lint and only make matching `NAN` specifically a hard error. The `NAN` part isn't relevant/important here because this PR only changes what literals are warned and `f64::NAN` isn't a literal, but I've added a test anyway to make sure we continue to not lint there. - Don't lint CStr literals because that can't be a pattern right now (fixes rust-lang#13681) changelog: none
Take, for example,
TotalEq
:As is proper, the
TotalEq
docs make no mention of this hidden methodassert_receiver_is_total_eq
.But now refer to an example like the
TotalEq
impl forOption
! Lo!assert_receiver_is_total_eq
is shown there.It shouldn't be.
The text was updated successfully, but these errors were encountered: