mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
use crash to clearify unreachable state
This commit is contained in:
parent
b4b18cda5a
commit
ae58623f70
1 changed files with 1 additions and 2 deletions
|
@ -519,8 +519,7 @@ swapAndUpdateDataIndex = \@Dict { metadata, dataIndices, data, size }, removedIn
|
||||||
|
|
||||||
Err NotFound ->
|
Err NotFound ->
|
||||||
# This should be impossible.
|
# This should be impossible.
|
||||||
# TODO: Maybe crash, it would be a standard library bug?
|
crash "unreachable state in dict swapAndUpdateDataIndex hit. Definitely a standard library bug."
|
||||||
@Dict { metadata, dataIndices, data, size }
|
|
||||||
|
|
||||||
insertNotFoundHelper : Dict k v, k, v, U64, I8 -> Dict k v
|
insertNotFoundHelper : Dict k v, k, v, U64, I8 -> Dict k v
|
||||||
insertNotFoundHelper = \@Dict { metadata, dataIndices, data, size }, key, value, h1Key, h2Key ->
|
insertNotFoundHelper = \@Dict { metadata, dataIndices, data, size }, key, value, h1Key, h2Key ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue