-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Implement get_key_value for HashMap, BTreeMap #49346
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
e41b523
to
c3b1631
Compare
src/liballoc/btree/map.rs
Outdated
@@ -576,6 +576,35 @@ impl<K: Ord, V> BTreeMap<K, V> { | |||
} | |||
} | |||
|
|||
/// Returns a references to the key-value pair corresponding to the supplied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, it returns a pair which consists of references to the key and value - not sure if that's an important distinction, but we should remove " a " since it's not grammatically correct I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed - removed the part about references as that's included in the type signature anyway.
799af44
to
1434e26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we unmark these as #[inline]
? Unless there's some reason to do so I'd prefer to avoid it. Otherwise r=me.
1434e26
to
fbec3ec
Compare
Removed @bors r=Mark-Simulacrum |
@Diggsey: 🔑 Insufficient privileges: Not in reviewers |
@bors r+ rollup |
📌 Commit fbec3ec has been approved by |
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
…mulacrum Implement get_key_value for HashMap, BTreeMap Fixes rust-lang#43143 Follow up from rust-lang#46992
Fixes #43143
Follow up from #46992