Skip to content

chore: improve memchr maintenance path#216

Open
vip892766gma wants to merge 1 commit into
BurntSushi:masterfrom
vip892766gma:maint/20260519222110
Open

chore: improve memchr maintenance path#216
vip892766gma wants to merge 1 commit into
BurntSushi:masterfrom
vip892766gma:maint/20260519222110

Conversation

@vip892766gma
Copy link
Copy Markdown

Summary:

  • Add additional edge-case unit tests in the existing #[cfg(test)] modules covering empty-needle, single-byte haystack, and boundary alignment cases for the generic (all-arch) memchr/packedpair fallback paths, plus a debug_assert for needle length invariants at one public entry point where the invariant is currently only implicit. Pure additive tests and one narrow assertion — no behavior change.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

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.

1 participant