mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
use crash to clearify unreachable state
This commit is contained in:
parent
b4b18cda5a
commit
ae58623f70
@ -519,8 +519,7 @@ swapAndUpdateDataIndex = \@Dict { metadata, dataIndices, data, size }, removedIn
|
||||
|
||||
Err NotFound ->
|
||||
# This should be impossible.
|
||||
# TODO: Maybe crash, it would be a standard library bug?
|
||||
@Dict { metadata, dataIndices, data, size }
|
||||
crash "unreachable state in dict swapAndUpdateDataIndex hit. Definitely a standard library bug."
|
||||
|
||||
insertNotFoundHelper : Dict k v, k, v, U64, I8 -> Dict k v
|
||||
insertNotFoundHelper = \@Dict { metadata, dataIndices, data, size }, key, value, h1Key, h2Key ->
|
||||
|
Loading…
Reference in New Issue
Block a user