Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit b34ec30

Browse files
remove unused error message
1 parent 769d719 commit b34ec30

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/res_core.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ module ErrorMessages = struct
8181
...b}` wouldn't make sense, as `b` would override every field of `a` \
8282
anyway."
8383

84-
let _listExprSpread =
85-
"Lists can only have one `...` spread, and at the end.\n\
86-
Explanation: lists are singly-linked list, where a node contains a value \
87-
and points to the next node. `list{a, ...bc}` efficiently creates a new \
88-
item and links `bc` as its next nodes. `list{...bc, a}` would be \
89-
expensive, as it'd need to traverse `bc` and prepend each item to `a` one \
90-
by one. We therefore disallow such syntax sugar.\n\
91-
Solution: directly use `concat`."
92-
9384
let variantIdent =
9485
"A polymorphic variant (e.g. #id) must start with an alphabetical letter \
9586
or be a number (e.g. #742)"

0 commit comments

Comments
 (0)