-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Revert #103779 #104727
Revert #103779 #104727
Conversation
…=thomcc" The current implementation seems to be unsound. See rust-lang#104726.
r? @thomcc (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Ugh, oof. Nice catch. @bors r+ |
@the8472 Feel free to r- this if you think a simple fix is possible. I don't have time to look, but the indexing code in that was quite hairy, so it's not terribly surprising it hits issues. |
@bors rollup=never p=10 Marking as rollup=never since this will affect perf, and p=10 since it fixes a soundness bug. |
#104735 has been merged and the issue has been closed, so this can be closed too. |
☔ The latest upstream changes (presumably #104735) made this pull request unmergeable. Please resolve the merge conflicts. |
The current implementation of the SIMD-optimized
str.contains()
, added in #103779, is unsound. See #104726 for more details about the unsoundness.cc @the8472 @thomcc
Fixes #104726