Uh oh!
There was an error while loading. Please reload this page.
std.enums: fix EnumSet.init and EnumMap.init for non-exhaustive enums - #19309
Conversation
castholm
commented
Mar 24, 2024
The failing test is the As a starting point I would suggest iteratively running |
Ah thanks for the info. I hadn't realised that indexOf is a search when the enum is not dense. It looks like this will be n^2 cost for this case, so I'll rework the PR to only use indexOf for this non-exhaustive case, which should stay under the current limits. (I think!) |
Head branch was pushed to by a user without write access
sjb3d
commented
Mar 24, 2024
Latest in branch seems to pass locally, will need approval to trigger the CI workflow though. Thanks! |
Proposed fix and
EnumSettest case, fixes#19418.