Skip to content

Commit e91c5fe

Browse files
committed
sync ocaml
1 parent d905163 commit e91c5fe

File tree

3 files changed

+9
-21
lines changed

3 files changed

+9
-21
lines changed

lib/4.02.3/unstable/js_compiler.ml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92411,17 +92411,11 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
9241192411
| Tconstr (pathn, _, _) ->
9241292412
(* Format.eprintf "XXX path%d:%s path%d:%s@." n (Path.name path) (n+1) (Path.name pathn); *)
9241392413
resolve_path (n+1) pathn
92414-
| _ -> assert false)
92414+
| _ -> None)
9241592415
| {type_kind = Type_abstract; type_manifest = None} ->
92416-
(* Format.eprintf "XXX Type_abstract@."; *)
92417-
assert false
92418-
| {type_kind = Type_record _} ->
92419-
(* Format.eprintf "XXX Type_record@."; *)
92420-
assert false
92421-
| {type_kind = Type_open } ->
92422-
(* Exceptions *)
92423-
(* Format.eprintf "XXX Type_open %s.@." cstr.cstr_name; *)
92424-
Some {consts=[||]; blocks=[||]} in
92416+
None
92417+
| {type_kind = Type_record _ | Type_open (* Exceptions *) } ->
92418+
None in
9242592419

9242692420
let names = match (Btype.repr pat.pat_type).desc with
9242792421
| Tconstr (path, _, _) -> resolve_path 0 path

lib/4.02.3/whole_compiler.ml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79931,17 +79931,11 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
7993179931
| Tconstr (pathn, _, _) ->
7993279932
(* Format.eprintf "XXX path%d:%s path%d:%s@." n (Path.name path) (n+1) (Path.name pathn); *)
7993379933
resolve_path (n+1) pathn
79934-
| _ -> assert false)
79934+
| _ -> None)
7993579935
| {type_kind = Type_abstract; type_manifest = None} ->
79936-
(* Format.eprintf "XXX Type_abstract@."; *)
79937-
assert false
79938-
| {type_kind = Type_record _} ->
79939-
(* Format.eprintf "XXX Type_record@."; *)
79940-
assert false
79941-
| {type_kind = Type_open } ->
79942-
(* Exceptions *)
79943-
(* Format.eprintf "XXX Type_open %s.@." cstr.cstr_name; *)
79944-
Some {consts=[||]; blocks=[||]} in
79936+
None
79937+
| {type_kind = Type_record _ | Type_open (* Exceptions *) } ->
79938+
None in
7994579939

7994679940
let names = match (Btype.repr pat.pat_type).desc with
7994779941
| Tconstr (path, _, _) -> resolve_path 0 path

ocaml

Submodule ocaml updated from a825d85 to 2c3a6d8

0 commit comments

Comments
 (0)