@@ -3042,7 +3042,7 @@ end = struct
3042
3042
3043
3043
type t = int
3044
3044
3045
- let compare (x : t) (y : t) = Pervasives .compare x y
3045
+ let compare (x : t) (y : t) = Stdlib .compare x y
3046
3046
3047
3047
let equal (x : t) (y : t) = x = y
3048
3048
@@ -8639,7 +8639,7 @@ let string_of_file ic =
8639
8639
in copy()
8640
8640
8641
8641
let output_to_bin_file_directly filename fn =
8642
- let oc = Pervasives. open_out_bin filename in
8642
+ let oc = open_out_bin filename in
8643
8643
match fn filename oc with
8644
8644
| v -> close_out oc ; v
8645
8645
| exception e -> close_out oc ; raise e
@@ -8958,12 +8958,12 @@ module Color = struct
8958
8958
(* map a tag to a style, if the tag is known.
8959
8959
@raise Not_found otherwise *)
8960
8960
let style_of_tag s = match s with
8961
- | "error" -> (!cur_styles).error
8962
- | "warning" -> (!cur_styles).warning
8963
- | "loc" -> (!cur_styles).loc
8964
- | "info" -> [Bold; FG Yellow]
8965
- | "dim" -> [Dim]
8966
- | "filename" -> [FG Cyan]
8961
+ | Format.String_tag "error" -> (!cur_styles).error
8962
+ | Format.String_tag "warning" -> (!cur_styles).warning
8963
+ | Format.String_tag "loc" -> (!cur_styles).loc
8964
+ | Format.String_tag "info" -> [Bold; FG Yellow]
8965
+ | Format.String_tag "dim" -> [Dim]
8966
+ | Format.String_tag "filename" -> [FG Cyan]
8967
8967
| _ -> raise Not_found
8968
8968
8969
8969
let color_enabled = ref true
@@ -8984,13 +8984,13 @@ module Color = struct
8984
8984
(* add color handling to formatter [ppf] *)
8985
8985
let set_color_tag_handling ppf =
8986
8986
let open Format in
8987
- let functions = pp_get_formatter_tag_functions ppf () in
8987
+ let functions = pp_get_formatter_stag_functions ppf () in
8988
8988
let functions' = {functions with
8989
- mark_open_tag =(mark_open_tag ~or_else:functions.mark_open_tag );
8990
- mark_close_tag =(mark_close_tag ~or_else:functions.mark_close_tag );
8989
+ mark_open_stag =(mark_open_tag ~or_else:functions.mark_open_stag );
8990
+ mark_close_stag =(mark_close_tag ~or_else:functions.mark_close_stag );
8991
8991
} in
8992
8992
pp_set_mark_tags ppf true; (* enable tags *)
8993
- pp_set_formatter_tag_functions ppf functions';
8993
+ pp_set_formatter_stag_functions ppf functions';
8994
8994
(* also setup margins *)
8995
8995
pp_set_margin ppf (pp_get_margin std_formatter());
8996
8996
()
@@ -15011,7 +15011,7 @@ type let_binding =
15011
15011
lb_text: text Lazy.t;
15012
15012
lb_loc: Location.t; }
15013
15013
15014
- type let_bindings =
15014
+ type [@warning "-69"] let_bindings =
15015
15015
{ lbs_bindings: let_binding list;
15016
15016
lbs_rec: rec_flag;
15017
15017
lbs_extension: string Asttypes.loc option;
@@ -38389,7 +38389,7 @@ module Ext_js_file_kind
38389
38389
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
38390
38390
type case = Upper | Little
38391
38391
38392
- type t = { case : case; suffix : Ext_js_suffix.t }
38392
+ type [@warning "-69"] t = { case : case; suffix : Ext_js_suffix.t }
38393
38393
38394
38394
let any_runtime_kind = { case = Little; suffix = Ext_js_suffix.Js }
38395
38395
0 commit comments