Skip to content

BTreeMap: gather and decompose reusable tree fixing functions - #81362

Merged
bors merged 1 commit into
rust-lang:masterfrom
ssomers:btree_drainy_refactor_8
Feb 22, 2021
Merged

bors merged 1 commit into
rust-lang:masterfrom
ssomers:btree_drainy_refactor_8

Conversation

@ssomers

@ssomers ssomers commented Jan 25, 2021 •

Copy link
Copy Markdown
Contributor

View all comments

This is kind of pushing it as a standalone refactor, probably only useful for #81075 (or similar).
r? @Mark-Simulacrum

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 25, 2021
@Mark-Simulacrum

Copy link
Copy Markdown
Member

Can you say if this is changing any code beyond just moving things around? It looks like git is struggling to detect things with --color-moved when run locally...

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 12, 2021
@ssomers

ssomers commented Feb 12, 2021

Copy link
Copy Markdown
Contributor Author

Yes, it also decomposes the body of some moved functions into more functions. But it does not change or add arguments. Therefore #81075 not only starts reusing the new functions, it also changes some arguments.

I can of course do another PR merely gathering the existing functions in one place, perhaps renaming some, but it didn't strike me as useful on its own.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors try @rust-timer queue

@rust-timer

Copy link
Copy Markdown
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 12, 2021
@bors

bors commented Feb 12, 2021

Copy link
Copy Markdown
Collaborator

⌛ Trying commit cbbdb44 with merge fd57014500755e6af5188269772a1e80782bb062...

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 12, 2021
@bors

bors commented Feb 12, 2021

Copy link
Copy Markdown
Collaborator

☀️ Try build successful - checks-actions
Build commit: fd57014500755e6af5188269772a1e80782bb062 (fd57014500755e6af5188269772a1e80782bb062)

@rust-timer

Copy link
Copy Markdown
Collaborator

Queued fd57014500755e6af5188269772a1e80782bb062 with parent a118ee2, future comparison URL.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking try commit (fd57014500755e6af5188269772a1e80782bb062): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Feb 12, 2021
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Feb 13, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit cbbdb44 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 Feb 13, 2021
@bors

bors commented Feb 13, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cbbdb44 with merge 7ddeac2b60f557f78ca03e30084fe7941d1df698...

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job x86_64-apple failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)

@bors

bors commented Feb 13, 2021

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 13, 2021
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors retry likely spurious expected success, got: signal: 9

@bors bors removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 20, 2021
@bors

bors commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 22, 2021
@ehuss

ehuss commented Feb 22, 2021

Copy link
Copy Markdown
Contributor

@bors retry
#81890

@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 Feb 22, 2021
@bors

bors commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cbbdb44 with merge db7c9dd034b6f1264637120e1b724e6c4e54fa86...

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Build completed successfully in 0:00:58
+ /scripts/validate-toolstate.sh
Cloning into 'rust-toolstate'...
<Nothing changed>
error: miri maintainer @oli-obk is not assignable in the rust-lang/rust repo
error: rustfmt maintainer @topecongiro is not assignable in the rust-lang/rust repo
error: nomicon maintainer @Gankra is not assignable in the rust-lang/rust repo
error: reference maintainer @ehuss is not assignable in the rust-lang/rust repo
error: reference maintainer @Havvy is not assignable in the rust-lang/rust repo
error: reference maintainer @matthewjasper is not assignable in the rust-lang/rust repo
error: embedded-book maintainer @therealprof is not assignable in the rust-lang/rust repo
error: edition-guide maintainer @ehuss is not assignable in the rust-lang/rust repo
error: rustc-dev-guide maintainer @amanjeev is not assignable in the rust-lang/rust repo

  To be assignable, a person needs to be explicitly listed as a
  collaborator in the repository settings. The simple way to
  fix this is to ask someone with 'admin' privileges on the repo
  to add the person or whole team as a collaborator with 'read'
  privileges. Those privileges don't grant any extra permissions
  so it's safe to apply them.
The build will fail due to this.

@bors

bors commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Feb 22, 2021
@ehuss

ehuss commented Feb 22, 2021

Copy link
Copy Markdown
Contributor

@bors treeclosed=1000

error: miri maintainer @oli-obk is not assignable in the rust-lang/rust repo
error: rustfmt maintainer @topecongiro is not assignable in the rust-lang/rust repo
error: nomicon maintainer @Gankra is not assignable in the rust-lang/rust repo
error: reference maintainer @ehuss is not assignable in the rust-lang/rust repo
error: reference maintainer @Havvy is not assignable in the rust-lang/rust repo
error: reference maintainer @matthewjasper is not assignable in the rust-lang/rust repo
error: embedded-book maintainer @therealprof is not assignable in the rust-lang/rust repo
error: edition-guide maintainer @ehuss is not assignable in the rust-lang/rust repo
error: rustc-dev-guide maintainer @amanjeev is not assignable in the rust-lang/rust repo

@ehuss

ehuss commented Feb 22, 2021

Copy link
Copy Markdown
Contributor

@bors retry

@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 Feb 22, 2021
@kennytm

kennytm commented Feb 22, 2021

Copy link
Copy Markdown
Member

@bors p=1001

@bors

bors commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

⌛ Testing commit cbbdb44 with merge a15f484...

@kennytm

kennytm commented Feb 22, 2021

Copy link
Copy Markdown
Member

@bors treeclosed-

@bors

bors commented Feb 22, 2021

Copy link
Copy Markdown
Collaborator

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing a15f484 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 22, 2021
@bors
bors merged commit a15f484 into rust-lang:master Feb 22, 2021
@rustbot rustbot added this to the 1.52.0 milestone Feb 22, 2021
@bors bors mentioned this pull request Feb 22, 2021
@ssomers
ssomers deleted the btree_drainy_refactor_8 branch February 22, 2021 21:27
@clarfonthey clarfonthey added A-btree Area: `std::collections::{BTreeMap, BTreeSet}` A-collections Area: `std::collections` (prefer A-binaryheap, A-btree, A-hashtable, A-linkedlist, A-vecdeque) labels Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-btree Area: `std::collections::{BTreeMap, BTreeSet}` A-collections Area: `std::collections` (prefer A-binaryheap, A-btree, A-hashtable, A-linkedlist, A-vecdeque) merged-by-bors This PR was explicitly merged by bors. 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.

10 participants