Stéphane Glondu pushed to branch upstream at Debian OCaml Maintainers /
ppx-deriving
Commits:
03fac136 by Stephane Glondu at 2024-10-11T11:51:20+02:00
New upstream version 6.0.3
- - - - -
2 changed files:
- CHANGELOG.md
- src/api/ppx_deriving.cppo.ml
Changes:
=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,10 @@
+6.0.3
+-----
+
+* Add OCaml 5.3 support
+ #288
+ (@kit-ty-kate)
+
6.0.2
-----
=====================================
src/api/ppx_deriving.cppo.ml
=====================================
@@ -174,8 +174,18 @@ let raise_errorf ?sub ?loc fmt =
#if OCAML_VERSION >= (4, 08, 0)
let sub =
let msg_of_error err =
+#if OCAML_VERSION >= (5, 3, 0)
+ let loc = err.Location.main.loc in
+ let print_report fmt x =
+ Ocaml_common.Format_doc.deprecated_printer
+ (fun fmt -> Location.print_report fmt x) fmt
+ in
+ Location.msg ~loc "%a" print_report err
+#else
{ txt = (fun fmt -> Location.print_report fmt err);
- loc = err.Location.main.loc } in
+ loc = err.Location.main.loc }
+#endif
+ in
Option.map (List.map msg_of_error) sub in
#endif
let err = Location.error ?sub ?loc str in
View it on GitLab:
https://salsa.debian.org/ocaml-team/ppx-deriving/-/commit/03fac1366ea1b5d800ca5ce815b894b8c236c71f
--
View it on GitLab:
https://salsa.debian.org/ocaml-team/ppx-deriving/-/commit/03fac1366ea1b5d800ca5ce815b894b8c236c71f
You're receiving this email because of your account on salsa.debian.org.