Skip to content

Commit cdab8c1

Browse files
Fix Warnings.ml: use warnings <> [] instead of List.is_empty
Warnings.ml does not open Core, so List refers to the stdlib List module (shadowed by -open Frontend). Use the simpler `warnings <> []` pattern which works in any module context.
1 parent 5d22376 commit cdab8c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/frontend/Warnings.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ let pp ?printed_filename ppf (span, message) =
1313
Fmt.pf ppf "@[<v4>%a%a%a@]@]" purple "Warning" maybe_loc span Fmt.text message
1414

1515
let pp_warnings ?printed_filename ppf warnings =
16-
if not (List.is_empty warnings) then
16+
if warnings <> [] then
1717
Fmt.(pf ppf "@[<v>%a@]@\n" (list ~sep:cut (pp ?printed_filename)) warnings)

0 commit comments

Comments
 (0)