Skip to content

Commit

Permalink
Adapt to coq/coq#18280 (case relevance outside case info)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Nov 9, 2023
1 parent 4bbd657 commit dbd992f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions serlib/ser_constr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ let rec _constr_put (c : Constr.t) : _constr =
| C.Const p -> Const p
| C.Ind(p,q) -> Ind (p,q)
| C.Construct(p) -> Construct (p)
| C.Case(ci, u, ca, pr, pi, c, pb) ->
Case(ci, u, cra ca, crcr pr, crci pi, cr c, Array.map crcb pb)
| C.Case(ci, u, ca, (pr,r), pi, c, pb) ->
Case(ci, u, cra ca, (crcr pr,r), crci pi, cr c, Array.map crcb pb)
(* (int array * int) * (Name.t array * 'types array * 'constr array)) *)
| C.Fix(p,(na,u1,u2)) -> Fix(p, (na, cra u1, cra u2))
| C.CoFix(p,(na,u1,u2)) -> CoFix(p, (na, cra u1, cra u2))
Expand Down Expand Up @@ -183,7 +183,7 @@ let rec _constr_get (c : _constr) : Constr.t =
| Const p -> C.mkConstU(p)
| Ind(p,q) -> C.mkIndU(p, q)
| Construct(p) -> C.mkConstructU(p)
| Case(ci, u, ca, pr, pi, c, pb) -> C.mkCase (ci, u, cra ca, crcr pr, crci pi, cr c, Array.map crcb pb)
| Case(ci, u, ca, (pr,r), pi, c, pb) -> C.mkCase (ci, u, cra ca, (crcr pr,r), crci pi, cr c, Array.map crcb pb)
| Fix (p,(na,u1,u2)) -> C.mkFix(p, (na, cra u1, cra u2))
| CoFix(p,(na,u1,u2)) -> C.mkCoFix(p, (na, cra u1, cra u2))
| Proj(p,r,c) -> C.mkProj(p, r, cr c)
Expand Down

0 comments on commit dbd992f

Please sign in to comment.