-
Notifications
You must be signed in to change notification settings - Fork 13.4k
use sort_unstable to sort primitive types #76541
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
Conversation
It's not important to retain original order if we have &[1, 1, 2, 3] for example. clippy::stable_sort_primitive
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
Can't sort perform by itself this optimization inside? |
Hmm, it may be possible to have a custom |
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.
LGTM, can make an issue if you want to look into performing this optimisation within sort
.
@bors r+ rollup=never (might have a perf impact) |
📌 Commit b4935e0 has been approved by |
May make an issue if this remains unanswered so the idea does not get lost :) |
⌛ Testing commit b4935e0 with merge 49888362e2fbf2738f473ef73621c78475d32d34... |
💥 Test timed out |
@bors retry |
⌛ Testing commit b4935e0 with merge f8b002441bba6130859a9fe7a8b86c2d39196ca2... |
💔 Test failed - checks-azure |
Hm, since this test did not fail previously (when the build timed out) I assume this is spurious? |
Seems quite likely, though I am a bit surprised by spurious failures in that test. @bors retry run-make-fulldeps/long-linker-command-lines |
⌛ Testing commit b4935e0 with merge 285c7137e0fdfdd91de86ed9d178e295fe2b8569... |
💥 Test timed out |
This is one unlucky PR.. |
⌛ Testing commit b4935e0 with merge 8d505c0c5330ef924a4583158ab3a50d432c13d1... |
💔 Test failed - checks-actions |
Another spurious failure? |
Hmm, I rebased and retried again locally and didn't see any of the these test failures. |
Okay, let's try again. @bors retry |
☀️ Test successful - checks-actions, checks-azure |
It's not important to retain original order if we have &[1, 1, 2, 3] for example.
clippy::stable_sort_primitive