Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2018

This change makes the API for BTreeSet more consistent with BTreeMap, where BTreeMap::{is_empty, len} don't require T: Ord either.

Also, it reduces the number of impls for BTreeSet, making the generated documentation look much cleaner. Closes #47138.

cc @rust-lang/libs

@rust-highfive
Copy link
Contributor

r? @kennytm

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

@kennytm
Copy link
Member

kennytm commented Jan 3, 2018

Please fix the merge conflict first...

(cc @rust-lang/libs)

@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 3, 2018
@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Collaborator

bors commented Jan 3, 2018

📌 Commit 6076cf6 has been approved by alexcrichton

@alexcrichton alexcrichton 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 3, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Jan 5, 2018
…ichton

Remove `T: Ord` bound from `BTreeSet::{is_empty, len}`

This change makes the API for `BTreeSet` more consistent with `BTreeMap`, where `BTreeMap::{is_empty, len}` don't require `T: Ord` either.

Also, it reduces the number of `impl`s for `BTreeSet`, making the generated documentation look much cleaner. Closes rust-lang#47138.

cc @rust-lang/libs
bors added a commit that referenced this pull request Jan 5, 2018
Rollup of 10 pull requests

- Successful merges: #47030, #47033, #47110, #47149, #47150, #47160, #47162, #47182, #47198, #47199
- Failed merges:
@bors bors merged commit 6076cf6 into rust-lang:master Jan 5, 2018
@ghost ghost deleted the cleanup-btreeset branch January 5, 2018 13:31
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