Skip to content

Commit 0b563e0

Browse files
committed
Review changes
1 parent 9b51f3a commit 0b563e0

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

file_formats/cmi_format.ml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ let input_cmi_lazy ic =
127127
} = (input_value ic : header) in
128128
let crcs = (input_value ic : crcs) in
129129
let flags = (input_value ic : flags) in
130+
(* CR ocaml 5 compressed-marshal mshinwell: upstream uses [Compression] *)
130131
{
131132
cmi_name = name;
132133
cmi_kind = kind;
@@ -183,19 +184,12 @@ let output_cmi filename oc cmi =
183184
let len = Int64.sub val_pos data_pos in
184185
output_int64 oc len;
185186
Out_channel.seek oc val_pos;
186-
(* BACKPORT BEGIN *)
187-
(* CR ocaml 5 compressed-marshal mshinwell:
188-
upstream uses [Compression] here:
189-
Compression.output_value oc ((cmi.cmi_name, cmi.cmi_sign) : header);
190-
191-
*)
192187
output_value oc
193188
{
194189
header_name = cmi.cmi_name;
195190
header_kind = cmi.cmi_kind;
196191
header_sign = sign;
197192
};
198-
(* BACKPORT END *)
199193
flush oc;
200194
let crc = Digest.file filename in
201195
let my_info =

file_formats/cmt_format.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,10 @@ let iter_on_occurrences
242242
| Ttyp_class (path, lid, _typs) ->
243243
(* Deprecated syntax to extend a polymorphic variant *)
244244
f ~namespace:Type ctyp_env path lid
245+
| Ttyp_open (path, lid, _ct) ->
246+
f ~namespace:Module ctyp_env path lid
245247
| Ttyp_var _ | Ttyp_arrow _ | Ttyp_tuple _ | Ttyp_object _
246-
| Ttyp_alias _ | Ttyp_variant _ | Ttyp_poly _
247-
| Ttyp_call_pos | Ttyp_open _ -> ());
248+
| Ttyp_alias _ | Ttyp_variant _ | Ttyp_poly _ | Ttyp_call_pos -> ());
248249
default_iterator.typ sub ct);
249250

250251
pat =

0 commit comments

Comments
 (0)