File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -92411,17 +92411,11 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
92411
92411
| Tconstr (pathn, _, _) ->
92412
92412
(* Format.eprintf "XXX path%d:%s path%d:%s@." n (Path.name path) (n+1) (Path.name pathn); *)
92413
92413
resolve_path (n+1) pathn
92414
- | _ -> assert false )
92414
+ | _ -> None )
92415
92415
| {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
92425
92419
92426
92420
let names = match (Btype.repr pat.pat_type).desc with
92427
92421
| Tconstr (path, _, _) -> resolve_path 0 path
Original file line number Diff line number Diff line change @@ -79931,17 +79931,11 @@ and do_compile_matching repr partial ctx arg pmh = match pmh with
79931
79931
| Tconstr (pathn, _, _) ->
79932
79932
(* Format.eprintf "XXX path%d:%s path%d:%s@." n (Path.name path) (n+1) (Path.name pathn); *)
79933
79933
resolve_path (n+1) pathn
79934
- | _ -> assert false )
79934
+ | _ -> None )
79935
79935
| {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
79945
79939
79946
79940
let names = match (Btype.repr pat.pat_type).desc with
79947
79941
| Tconstr (path, _, _) -> resolve_path 0 path
You can’t perform that action at this time.
0 commit comments