-
Notifications
You must be signed in to change notification settings - Fork 175
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
ZeroMap2d::from_iter seems to be broken #4161
Comments
It is most likely due to the duplicate entries for I think this is new in CLDR 44 because they fixed up some data involving merged time zones. For example, there is the following data:
However, both
The old BCP-47 alias for Pacific/Johnston is deprecated in CLDR 44:
|
Yeah, I don't know that much about ZM2D's code. from_iter is a hard function to write efficiently so if we optimized it at some point I bet we messed up a bit. |
So the solution is to prevent the addition of duplicate keys, but what should we do if we encounter one in
Until the standard library adds a fallible version of Thoughts? @Manishearth |
Option 3 works for me. |
When constructing a ZeroMap2d with the following data in the following order:
ZeroMap2d::from_iter produces the following ZeroMap2d:
which is... wrong.
See test case in #4160
The text was updated successfully, but these errors were encountered: