Skip to content

most sorts can be unstable#5732

Merged
bors merged 1 commit intorust-lang:masterfrom
Eh2406:sort_unstable
Jul 16, 2018
Merged

most sorts can be unstable#5732
bors merged 1 commit intorust-lang:masterfrom
Eh2406:sort_unstable

Conversation

@Eh2406
Copy link
Contributor

@Eh2406 Eh2406 commented Jul 16, 2018

Inspired by this witch was improved in #5691, I did a quick review of sorts in the code. Most can be unstable, some can use a _key form, and none had unnecessary allocation.

@rust-highfive
Copy link

r? @alexcrichton

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

@alexcrichton
Copy link
Member

@bors: delegate=Eh2406

Looks good to me! Although some tests may be failing?

@bors
Copy link
Contributor

bors commented Jul 16, 2018

✌️ @Eh2406 can now approve this pull request

@Eh2406
Copy link
Contributor Author

Eh2406 commented Jul 16, 2018

r+

@alexcrichton
Copy link
Member

Ah you'll want @bors: r=alexcrichton, but no worries!

@bors: r+

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit c74aa94 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Jul 16, 2018

📌 Commit c74aa94 has been approved by alexcrichton,`

@bors
Copy link
Contributor

bors commented Jul 16, 2018

⌛ Testing commit c74aa94 with merge 558eee4...

bors added a commit that referenced this pull request Jul 16, 2018
most sorts can be unstable

Inspired by [this](https://github.com/rust-lang/cargo/blob/94f7058a483b05ad742da5efb66dd1c2d4b8619c/src/bin/cargo/main.rs#L112-L122) witch was improved in #5691, I did a quick review of `sort`s in the code. Most can be unstable, some can use a `_key` form, and none had unnecessary allocation.
@bors
Copy link
Contributor

bors commented Jul 16, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton`,
Pushing 558eee4 to master...

@bors bors merged commit c74aa94 into rust-lang:master Jul 16, 2018
@Eh2406 Eh2406 deleted the sort_unstable branch July 17, 2018 02:03
@ehuss ehuss added this to the 1.29.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants