Processing: [default: loading data] [WARNING] Input error: This file is for package 'ocaml-compiler-libs.v0.17.0+ox1' but has mismatching fields 'version:v0.17.0+ox. [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] [ppx_deriving.6.1.1+ox: git] -> retrieved ppx_deriving.6.1.1+ox (git+https://github.com/patricoferris/ppx_deriving.git#4cb09f54ff13e525804852190bfed8abb9267014) [ppx_deriving: dune subst] + /home/opam/.opam/default/bin/dune "subst" (CWD=/home/opam/.opam/default/.opam-switch/build/ppx_deriving.6.1.1+ox) [ppx_deriving: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "ppx_deriving" "-j" "32" (CWD=/home/opam/.opam/default/.opam-switch/build/ppx_deriving.6.1.1+ox) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/enum/.ppx_deriving_enum.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/enum/.ppx_deriving_enum.objs/byte/ppx_deriving_enum.cmo -c -impl src_plugins/enum/ppx_deriving_enum.pp.ml) - File "src_plugins/enum/ppx_deriving_enum.ml", line 96, characters 10-23: - 96 | (Exp.function_ to_enum_cases); - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/enum/ppx_deriving_enum.ml", line 98, characters 10-23: - 98 | (Exp.function_ from_enum_cases)] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/create/.ppx_deriving_create.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/create/.ppx_deriving_create.objs/byte/ppx_deriving_create.cmo -c -impl src_plugins/create/ppx_deriving_create.pp.ml) - File "src_plugins/create/ppx_deriving_create.ml", line 49, characters 10-18: - 49 | Exp.fun_ Label.nolabel None (pvar name) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 51, characters 10-18: - 51 | Exp.fun_ Label.nolabel None (punit ()) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 55, characters 26-34: - 55 | | Some default -> Exp.fun_ (Label.optional name) (Some (Ppx_deriving.quote ~quoter default)) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 63, characters 12-20: - 63 | Exp.fun_ (Label.labelled name') None (pvar name') - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 64, characters 15-23: - 64 | (Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 71, characters 12-20: - 71 | Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 73, characters 12-20: - 73 | Exp.fun_ (Label.optional name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 74, characters 17-25: - 74 | | _ -> Exp.fun_ (Label.labelled name) None (pvar name) accum) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/make/.ppx_deriving_make.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/make/.ppx_deriving_make.objs/byte/ppx_deriving_make.cmo -c -impl src_plugins/make/ppx_deriving_make.pp.ml) - File "src_plugins/make/ppx_deriving_make.ml", line 58, characters 4-12: - 58 | Exp.fun_ (Label.optional name) (Some (Ppx_deriving.quote ~quoter default)) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 66, characters 8-16: - 66 | Exp.fun_ (Label.labelled name') None (pvar name') - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 67, characters 11-19: - 67 | (Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 78, characters 8-16: - 78 | Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 80, characters 8-16: - 80 | Exp.fun_ (Label.optional name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 81, characters 13-21: - 81 | | _ -> Exp.fun_ (Label.labelled name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 94, characters 8-16: - 94 | Exp.fun_ Label.nolabel None (pvar name) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 96, characters 8-16: - 96 | Exp.fun_ Label.nolabel None (punit ()) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/map/.ppx_deriving_map.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/map/.ppx_deriving_map.objs/byte/ppx_deriving_map.cmo -c -impl src_plugins/map/ppx_deriving_map.pp.ml) - File "src_plugins/map/ppx_deriving_map.ml", line 77, characters 4-17: - 77 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/map/ppx_deriving_map.ml", line 110, characters 6-19: - 110 | Exp.function_ - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/map/ppx_deriving_map.ml", lines 92-122, characters 4-69: - 92 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 93 | | Ptype_abstract, Some manifest -> expr_of_typ ~decl:type_decl manifest - 94 | | Ptype_variant constrs, _ -> - 95 | constrs |> - 96 | List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - ... - 119 | | Ptype_abstract, None -> - 120 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 121 | | Ptype_open, _ -> - 122 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/iter/.ppx_deriving_iter.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/iter/.ppx_deriving_iter.objs/byte/ppx_deriving_iter.cmo -c -impl src_plugins/iter/ppx_deriving_iter.pp.ml) - File "src_plugins/iter/ppx_deriving_iter.ml", line 71, characters 4-17: - 71 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/iter/ppx_deriving_iter.ml", line 107, characters 6-19: - 107 | Exp.function_ - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/iter/ppx_deriving_iter.ml", lines 86-118, characters 4-69: - 86 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 87 | | Ptype_abstract, Some manifest -> expr_of_typ manifest - 88 | | Ptype_variant constrs, _ -> - 89 | constrs |> - 90 | List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - ... - 115 | | Ptype_abstract, None -> - 116 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 117 | | Ptype_open, _ -> - 118 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/fold/.ppx_deriving_fold.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/fold/.ppx_deriving_fold.objs/byte/ppx_deriving_fold.cmo -c -impl src_plugins/fold/ppx_deriving_fold.pp.ml) - File "src_plugins/fold/ppx_deriving_fold.ml", line 75, characters 4-17: - 75 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/fold/ppx_deriving_fold.ml", line 109, characters 28-41: - 109 | [%expr fun acc -> [%e Exp.function_ cases]] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/fold/ppx_deriving_fold.ml", lines 90-120, characters 4-69: - 90 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 91 | | Ptype_abstract, Some manifest -> expr_of_typ manifest - 92 | | Ptype_variant constrs, _ -> - 93 | let cases = constrs |> List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - 94 | match pcd_args with - ... - 117 | | Ptype_abstract, None -> - 118 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 119 | | Ptype_open, _ -> - 120 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/eq/.ppx_deriving_eq.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/eq/.ppx_deriving_eq.objs/byte/ppx_deriving_eq.cmo -c -impl src_plugins/eq/ppx_deriving_eq.pp.ml) - File "src_plugins/eq/ppx_deriving_eq.ml", lines 145-180, characters 4-69: - 145 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 146 | | Ptype_abstract, Some manifest -> expr_of_typ quoter manifest - 147 | | Ptype_variant constrs, _ -> - 148 | let cases = - 149 | (constrs |> List.map (fun { pcd_name = { txt = name }; pcd_args; pcd_loc } -> - ... - 177 | | Ptype_abstract, None -> - 178 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 179 | | Ptype_open, _ -> - 180 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src/api/.ppx_deriving_api.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -cmi-file src/api/.ppx_deriving_api.objs/byte/ppx_deriving.cmi -no-alias-deps -o src/api/.ppx_deriving_api.objs/byte/ppx_deriving.cmo -c -impl src/api/ppx_deriving.pp.ml) - File "./ppx_deriving.cppo.ml", line 511, characters 4-12: - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "./ppx_deriving.cppo.ml", line 516, characters 4-12: - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/ord/.ppx_deriving_ord.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/ord/.ppx_deriving_ord.objs/byte/ppx_deriving_ord.cmo -c -impl src_plugins/ord/ppx_deriving_ord.pp.ml) - File "src_plugins/ord/ppx_deriving_ord.ml", line 35, characters 21-34: - 35 | let to_int = [%e Exp.function_ int_cases] in - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/ord/ppx_deriving_ord.ml", lines 182-217, characters 4-69: - 182 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 183 | | Ptype_abstract, Some manifest -> expr_of_typ quoter manifest - 184 | | Ptype_variant constrs, _ -> - 185 | let int_cases = - 186 | constrs |> List.mapi (fun i { pcd_name = { txt = name }; pcd_args } -> - ... - 214 | | Ptype_abstract, None -> - 215 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 216 | | Ptype_open, _ -> - 217 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -w -27-9 -g -bin-annot -bin-annot-occurrences -bin-annot-cms -I src_plugins/show/.ppx_deriving_show.objs/byte -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -no-alias-deps -o src_plugins/show/.ppx_deriving_show.objs/byte/ppx_deriving_show.cmo -c -impl src_plugins/show/ppx_deriving_show.pp.ml) - File "src_plugins/show/ppx_deriving_show.ml", line 182, characters 6-19: - 182 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/show/ppx_deriving_show.ml", line 268, characters 28-41: - 268 | [%expr fun fmt -> [%e Exp.function_ cases]] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/show/ppx_deriving_show.ml", lines 197-288, characters 4-69: - 197 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 198 | | Ptype_abstract, Some manifest -> - 199 | [%expr fun fmt -> [%e expr_of_typ quoter manifest]] - 200 | | Ptype_variant constrs, _ -> - 201 | let cases = - ... - 285 | | Ptype_abstract, None -> - 286 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 287 | | Ptype_open, _ -> - 288 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -cmi-file src/api/.ppx_deriving_api.objs/byte/ppx_deriving.cmi -no-alias-deps -o src/api/.ppx_deriving_api.objs/native/ppx_deriving.cmx -c -impl src/api/ppx_deriving.pp.ml) - File "./ppx_deriving.cppo.ml", line 511, characters 4-12: - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "./ppx_deriving.cppo.ml", line 516, characters 4-12: - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/enum/.ppx_deriving_enum.objs/byte -I src_plugins/enum/.ppx_deriving_enum.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/enum/.ppx_deriving_enum.objs/byte/ppx_deriving_enum.cmi -no-alias-deps -o src_plugins/enum/.ppx_deriving_enum.objs/native/ppx_deriving_enum.cmx -c -impl src_plugins/enum/ppx_deriving_enum.pp.ml) - File "src_plugins/enum/ppx_deriving_enum.ml", line 96, characters 10-23: - 96 | (Exp.function_ to_enum_cases); - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/enum/ppx_deriving_enum.ml", line 98, characters 10-23: - 98 | (Exp.function_ from_enum_cases)] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/create/.ppx_deriving_create.objs/byte -I src_plugins/create/.ppx_deriving_create.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/create/.ppx_deriving_create.objs/byte/ppx_deriving_create.cmi -no-alias-deps -o src_plugins/create/.ppx_deriving_create.objs/native/ppx_deriving_create.cmx -c -impl src_plugins/create/ppx_deriving_create.pp.ml) - File "src_plugins/create/ppx_deriving_create.ml", line 49, characters 10-18: - 49 | Exp.fun_ Label.nolabel None (pvar name) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 51, characters 10-18: - 51 | Exp.fun_ Label.nolabel None (punit ()) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 55, characters 26-34: - 55 | | Some default -> Exp.fun_ (Label.optional name) (Some (Ppx_deriving.quote ~quoter default)) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 63, characters 12-20: - 63 | Exp.fun_ (Label.labelled name') None (pvar name') - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 64, characters 15-23: - 64 | (Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 71, characters 12-20: - 71 | Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 73, characters 12-20: - 73 | Exp.fun_ (Label.optional name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/create/ppx_deriving_create.ml", line 74, characters 17-25: - 74 | | _ -> Exp.fun_ (Label.labelled name) None (pvar name) accum) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/make/.ppx_deriving_make.objs/byte -I src_plugins/make/.ppx_deriving_make.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/make/.ppx_deriving_make.objs/byte/ppx_deriving_make.cmi -no-alias-deps -o src_plugins/make/.ppx_deriving_make.objs/native/ppx_deriving_make.cmx -c -impl src_plugins/make/ppx_deriving_make.pp.ml) - File "src_plugins/make/ppx_deriving_make.ml", line 58, characters 4-12: - 58 | Exp.fun_ (Label.optional name) (Some (Ppx_deriving.quote ~quoter default)) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 66, characters 8-16: - 66 | Exp.fun_ (Label.labelled name') None (pvar name') - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 67, characters 11-19: - 67 | (Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 78, characters 8-16: - 78 | Exp.fun_ (Label.optional name) (Some [%expr []]) (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 80, characters 8-16: - 80 | Exp.fun_ (Label.optional name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 81, characters 13-21: - 81 | | _ -> Exp.fun_ (Label.labelled name) None (pvar name) accum - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 94, characters 8-16: - 94 | Exp.fun_ Label.nolabel None (pvar name) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/make/ppx_deriving_make.ml", line 96, characters 8-16: - 96 | Exp.fun_ Label.nolabel None (punit ()) (record fields) - ^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.fun_ - Use [Ppxlib_jane.Ast_builder] for constructing functions ASTs that are handed to the ocaml compiler, e.g. in ppxes - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/map/.ppx_deriving_map.objs/byte -I src_plugins/map/.ppx_deriving_map.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/map/.ppx_deriving_map.objs/byte/ppx_deriving_map.cmi -no-alias-deps -o src_plugins/map/.ppx_deriving_map.objs/native/ppx_deriving_map.cmx -c -impl src_plugins/map/ppx_deriving_map.pp.ml) - File "src_plugins/map/ppx_deriving_map.ml", line 77, characters 4-17: - 77 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/map/ppx_deriving_map.ml", line 110, characters 6-19: - 110 | Exp.function_ - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/map/ppx_deriving_map.ml", lines 92-122, characters 4-69: - 92 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 93 | | Ptype_abstract, Some manifest -> expr_of_typ ~decl:type_decl manifest - 94 | | Ptype_variant constrs, _ -> - 95 | constrs |> - 96 | List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - ... - 119 | | Ptype_abstract, None -> - 120 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 121 | | Ptype_open, _ -> - 122 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/iter/.ppx_deriving_iter.objs/byte -I src_plugins/iter/.ppx_deriving_iter.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/iter/.ppx_deriving_iter.objs/byte/ppx_deriving_iter.cmi -no-alias-deps -o src_plugins/iter/.ppx_deriving_iter.objs/native/ppx_deriving_iter.cmx -c -impl src_plugins/iter/ppx_deriving_iter.pp.ml) - File "src_plugins/iter/ppx_deriving_iter.ml", line 71, characters 4-17: - 71 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/iter/ppx_deriving_iter.ml", line 107, characters 6-19: - 107 | Exp.function_ - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/iter/ppx_deriving_iter.ml", lines 86-118, characters 4-69: - 86 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 87 | | Ptype_abstract, Some manifest -> expr_of_typ manifest - 88 | | Ptype_variant constrs, _ -> - 89 | constrs |> - 90 | List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - ... - 115 | | Ptype_abstract, None -> - 116 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 117 | | Ptype_open, _ -> - 118 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/fold/.ppx_deriving_fold.objs/byte -I src_plugins/fold/.ppx_deriving_fold.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/fold/.ppx_deriving_fold.objs/byte/ppx_deriving_fold.cmi -no-alias-deps -o src_plugins/fold/.ppx_deriving_fold.objs/native/ppx_deriving_fold.cmx -c -impl src_plugins/fold/ppx_deriving_fold.pp.ml) - File "src_plugins/fold/ppx_deriving_fold.ml", line 75, characters 4-17: - 75 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/fold/ppx_deriving_fold.ml", line 109, characters 28-41: - 109 | [%expr fun acc -> [%e Exp.function_ cases]] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/fold/ppx_deriving_fold.ml", lines 90-120, characters 4-69: - 90 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 91 | | Ptype_abstract, Some manifest -> expr_of_typ manifest - 92 | | Ptype_variant constrs, _ -> - 93 | let cases = constrs |> List.map (fun { pcd_name = { txt = name' }; pcd_args } -> - 94 | match pcd_args with - ... - 117 | | Ptype_abstract, None -> - 118 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 119 | | Ptype_open, _ -> - 120 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/eq/.ppx_deriving_eq.objs/byte -I src_plugins/eq/.ppx_deriving_eq.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/eq/.ppx_deriving_eq.objs/byte/ppx_deriving_eq.cmi -no-alias-deps -o src_plugins/eq/.ppx_deriving_eq.objs/native/ppx_deriving_eq.cmx -c -impl src_plugins/eq/ppx_deriving_eq.pp.ml) - File "src_plugins/eq/ppx_deriving_eq.ml", lines 145-180, characters 4-69: - 145 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 146 | | Ptype_abstract, Some manifest -> expr_of_typ quoter manifest - 147 | | Ptype_variant constrs, _ -> - 148 | let cases = - 149 | (constrs |> List.map (fun { pcd_name = { txt = name }; pcd_args; pcd_loc } -> - ... - 177 | | Ptype_abstract, None -> - 178 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 179 | | Ptype_open, _ -> - 180 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/ord/.ppx_deriving_ord.objs/byte -I src_plugins/ord/.ppx_deriving_ord.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/ord/.ppx_deriving_ord.objs/byte/ppx_deriving_ord.cmi -no-alias-deps -o src_plugins/ord/.ppx_deriving_ord.objs/native/ppx_deriving_ord.cmx -c -impl src_plugins/ord/ppx_deriving_ord.pp.ml) - File "src_plugins/ord/ppx_deriving_ord.ml", line 35, characters 21-34: - 35 | let to_int = [%e Exp.function_ int_cases] in - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/ord/ppx_deriving_ord.ml", lines 182-217, characters 4-69: - 182 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 183 | | Ptype_abstract, Some manifest -> expr_of_typ quoter manifest - 184 | | Ptype_variant constrs, _ -> - 185 | let int_cases = - 186 | constrs |> List.mapi (fun i { pcd_name = { txt = name }; pcd_args } -> - ... - 214 | | Ptype_abstract, None -> - 215 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 216 | | Ptype_open, _ -> - 217 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -w -27-9 -g -I src_plugins/show/.ppx_deriving_show.objs/byte -I src_plugins/show/.ppx_deriving_show.objs/native -I /home/opam/.opam/default/lib/basement -I /home/opam/.opam/default/lib/ocaml-compiler-libs/common -I /home/opam/.opam/default/lib/ocaml-compiler-libs/shadow -I /home/opam/.opam/default/lib/ocaml/compiler-libs -I /home/opam/.opam/default/lib/ppx_derivers -I /home/opam/.opam/default/lib/ppxlib -I /home/opam/.opam/default/lib/ppxlib/print_diff -I /home/opam/.opam/default/lib/ppxlib_ast/ast -I /home/opam/.opam/default/lib/ppxlib_ast/astlib -I /home/opam/.opam/default/lib/ppxlib_ast/stdppx -I /home/opam/.opam/default/lib/ppxlib_ast/traverse_builtins -I /home/opam/.opam/default/lib/ppxlib_jane -I /home/opam/.opam/default/lib/sexp_type -I /home/opam/.opam/default/lib/sexp_type/grammar -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdlib-shims -I src/api/.ppx_deriving_api.objs/byte -I src/api/.ppx_deriving_api.objs/native -cmi-file src_plugins/show/.ppx_deriving_show.objs/byte/ppx_deriving_show.cmi -no-alias-deps -o src_plugins/show/.ppx_deriving_show.objs/native/ppx_deriving_show.cmx -c -impl src_plugins/show/ppx_deriving_show.pp.ml) - File "src_plugins/show/ppx_deriving_show.ml", line 182, characters 6-19: - 182 | Exp.function_ cases - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/show/ppx_deriving_show.ml", line 268, characters 28-41: - 268 | [%expr fun fmt -> [%e Exp.function_ cases]] - ^^^^^^^^^^^^^ - Alert prefer_jane_syntax: Ppxlib.Ast_helper.Exp.function_ - Use [Ppxlib_jane.Ast_builder] for constructing function ASTs that are handed to the ocaml compiler, e.g. in ppxes - - File "src_plugins/show/ppx_deriving_show.ml", lines 197-288, characters 4-69: - 197 | ....match type_decl.ptype_kind, type_decl.ptype_manifest with - 198 | | Ptype_abstract, Some manifest -> - 199 | [%expr fun fmt -> [%e expr_of_typ quoter manifest]] - 200 | | Ptype_variant constrs, _ -> - 201 | let cases = - ... - 285 | | Ptype_abstract, None -> - 286 | raise_errorf ~loc "%s cannot be derived for fully abstract types" deriver - 287 | | Ptype_open, _ -> - 288 | raise_errorf ~loc "%s cannot be derived for open types" deriver - Warning 8 [partial-match]: this pattern-matching is not exhaustive. - Here is an example of a case that is not matched: - (Ptype_record_unboxed_product _, _) -> compiled ppx_deriving.6.1.1+ox -> installed ppx_deriving.6.1.1+ox