Skip to content

Rustdoc suggests notable trait for &mut when given shared reference #78160

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

Closed
carbotaniuman opened this issue Oct 20, 2020 · 0 comments · Fixed by #91750
Closed

Rustdoc suggests notable trait for &mut when given shared reference #78160

carbotaniuman opened this issue Oct 20, 2020 · 0 comments · Fixed by #91750
Labels
A-trait-system Area: Trait system C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@carbotaniuman
Copy link
Contributor

I can't tell what version this is, but I was browsing the HashMap documentation here and came across this block for fn key(&self).

Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F 
where
    F: Unpin + Future + ?Sized, 
    type Output = <F as Future>::Output;
impl<'_, I> Iterator for &'_ mut I 
where
    I: Iterator + ?Sized, 
    type Item = <I as Iterator>::Item;
impl<R: Read + ?Sized, '_> Read for &'_ mut R
impl<W: Write + ?Sized, '_> Write for &'_ mut W
@camelid camelid added C-bug Category: This is a bug. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. A-trait-system Area: Trait system labels Oct 20, 2020
notriddle added a commit to notriddle/rust that referenced this issue Dec 10, 2021
@bors bors closed this as completed in 6c66d34 Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trait-system Area: Trait system 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

Successfully merging a pull request may close this issue.

3 participants