Skip to content
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

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

Diggsey
Copy link
Contributor

@Diggsey Diggsey commented Mar 24, 2018

Fixes #43143

Follow up from #46992

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 24, 2018
@@ -576,6 +576,35 @@ impl<K: Ord, V> BTreeMap<K, V> {
}
}

/// Returns a references to the key-value pair corresponding to the supplied
Copy link
Member

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.

Copy link
Contributor Author

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.

@Diggsey Diggsey force-pushed the hashmap-get-pair branch 3 times, most recently from 799af44 to 1434e26 Compare March 25, 2018 03:03
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a 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.

@Diggsey
Copy link
Contributor Author

Diggsey commented Mar 25, 2018

Removed

@bors r=Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Mar 25, 2018

@Diggsey: 🔑 Insufficient privileges: Not in reviewers

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Mar 25, 2018

📌 Commit fbec3ec has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 25, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Mar 26, 2018
…mulacrum

Implement get_key_value for HashMap, BTreeMap

Fixes rust-lang#43143

Follow up from rust-lang#46992
TimNN added a commit to TimNN/rust that referenced this pull request Mar 26, 2018
…mulacrum

Implement get_key_value for HashMap, BTreeMap

Fixes rust-lang#43143

Follow up from rust-lang#46992
bors added a commit that referenced this pull request Mar 26, 2018
Rollup of 7 pull requests

- Successful merges: #48693, #48932, #49103, #49170, #49187, #49346, #49353
- Failed merges:
@bors bors merged commit fbec3ec into rust-lang:master Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants