@@ -504,23 +504,12 @@ let show_locs ppf (loc1, loc2) =
504
504
show_loc " Expected declaration" ppf loc2;
505
505
show_loc " Actual declaration" ppf loc1
506
506
507
- let include_err ~ env ppf = function
507
+ let include_err ppf = function
508
508
| Missing_field (id , loc , kind ) ->
509
509
fprintf ppf " The %s `%a' is required but not provided" kind ident id;
510
510
show_loc " Expected declaration" ppf loc
511
511
| Value_descriptions (id , d1 , d2 ) ->
512
- let curry_kind_1, curry_kind_2 =
513
- match
514
- (Ctype. expand_head env d1.val_type, Ctype. expand_head env d2.val_type)
515
- with
516
- | {desc = Tarrow _}, {desc = Tconstr (Pident {name = " function$" }, _, _)}
517
- ->
518
- (" (curried)" , " (uncurried)" )
519
- | {desc = Tconstr (Pident {name = " function$" }, _, _)}, {desc = Tarrow _}
520
- ->
521
- (" (uncurried)" , " (curried)" )
522
- | _ -> (" " , " " )
523
- in
512
+ let curry_kind_1, curry_kind_2 = (" " , " " ) in
524
513
fprintf ppf
525
514
" @[<hv 2>Values do not match:@ %a%s@;<1 -2>is not included in@ %a%s@]"
526
515
(value_description id) d1 curry_kind_1 (value_description id) d2
@@ -606,7 +595,7 @@ let context ppf cxt =
606
595
607
596
let include_err ppf (cxt , env , err ) =
608
597
Printtyp. wrap_printing_env env (fun () ->
609
- fprintf ppf " @[<v>%a%a@]" context (List. rev cxt) ( include_err ~env ) err)
598
+ fprintf ppf " @[<v>%a%a@]" context (List. rev cxt) include_err err)
610
599
611
600
let buffer = ref Bytes. empty
612
601
let is_big obj =
0 commit comments