-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Substring violates Hashable’s requirements #59388
Comments
|
https://forums.swift.org/t/substring-violates-hashables-requirements-stdlib-compiler-bug/58046/5
https://forums.swift.org/t/substring-violates-hashables-requirements-stdlib-compiler-bug/58046/7
I'm going to use this issue to track the potential back deployment of the fix. Beyond really bad However, we'll need to figure out if we can reasonably implement this with APIs that are available to call from inlinable functions. |
|
This is still unresolved in 5.7: |
|
@jepers, did you see this on macOS Ventura or Monterey? The fix requires a new stdlib, and that only ships within the OS. (Upgrading the toolchain isn't enough, unfortunately.) I'll double check myself later, too. |
Describe the bug
Dictionaries andSets ofSubstrings containing non-ascii characters can sometimes end up having duplicated keys and/or crash.Swift Forum post
To Reproduce
The text was updated successfully, but these errors were encountered: