Skip to content

Conversation

@thomasqueirozb
Copy link
Contributor

Summary

Since Rust 1.81.0, partial_cmp inside sort*_by functions can panic is the sort is not stable.

Vector configuration

NA

How did you test this PR?

cargo nextest run

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

Closes: #23477

@thomasqueirozb thomasqueirozb requested a review from a team as a code owner September 15, 2025 19:01
@github-actions github-actions bot added domain: sources Anything related to the Vector's sources domain: sinks Anything related to the Vector's sinks labels Sep 15, 2025
@thomasqueirozb thomasqueirozb changed the title fix: partial_cmp used in sort functions causing panics fix(sinks, sources): partial_cmp used in sort functions causing panics Sep 15, 2025
@thomasqueirozb thomasqueirozb added this pull request to the merge queue Sep 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 15, 2025
@pront pront added this pull request to the merge queue Sep 16, 2025
Merged via the queue into master with commit 582fd3c Sep 16, 2025
86 checks passed
@pront pront deleted the fix-panic-partial-cmp-sort-unstable branch September 16, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: sinks Anything related to the Vector's sinks domain: sources Anything related to the Vector's sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic: user-provided comparison function does not correctly implement a total order

3 participants