Skip to content

Falsely(?) triggered warning 56 [unreachable-case] starting with 5.3.0~beta1 #13598

@tleedjarv

Description

@tleedjarv

Trying out 5.3.0~beta1 with Unison, I see the following warning. This warning is not present with versions up to and including 5.3.0~alpha1.

ocamlopt -g -I lwt -I ubase -I system -I +unix -I +str -I system/generic -I lwt/generic -c copy.ml
File "/home/runner/work/unison/unison/src/copy.ml", line 218, characters 37-88:
218 |                                    | TransferNeedsDoubleCheckAgainstCurrentSource (a, b) -> I32 (a, b)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 56 [unreachable-case]: this match case is unreachable.
Consider replacing it with a refutation case '<pat> -> .'

The source: https://github.com/bcpierce00/unison/blob/96e15a800bb0e619da6f7092ddefc47101c3092f/src/copy.ml#L202-L224

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions