-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: Notable traits shows wrong type parameter #80737
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
Comments
I think this is a duplicate of #14072. |
Hmm, that seems possible. Wow, that issue is so old: it refers to |
Yes, you can manually type the version number in the URL: https://doc.rust-lang.org/1.0.0/std/ |
Thanks! I forgot about that. However, I meant for the docs pre-1.0. Do you know of any way to view those? |
Followup: 0.11.0 is the earliest version I could find docs for: https://doc.rust-lang.org/0.11.0/std/ |
The "Notable traits" popup for
Entry::or_insert
shows notable traits for&'_ mut I
when it should show&'a mut V
(or at least&'_ mut V
):Note that this happens for other functions on
Entry
. Another example isEntry::key
which shows&'_ mut I
when it should show&'a K
.I'm not 100% sure this is a bug, but the behavior is definitely confusing: I'm not sure what the notable traits popup is referring to when it references an
I
type parameter (mut I
doesn't even appear in the file thatEntry
is defined in...).The text was updated successfully, but these errors were encountered: