Skip to content

Commit 8726f70

Browse files
authored
Merge pull request #882 from SkySkimmer/mind-ntypes
Adapt to rocq-prover/rocq#21067 (no mind_ntypes field)
2 parents 646dda5 + c23ab7f commit 8726f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rocq_elpi_HOAS.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,8 +3423,8 @@ let inductive_decl2lp ~depth coq_ctx constraints state (mutind,uinst,(mind,ind),
34233423
mind_finite = kind;
34243424
mind_nparams = allparamsno;
34253425
mind_nparams_rec = paramsno;
3426-
mind_ntypes = ntyps;
34273426
mind_record } = mind in
3427+
let ntyps = Array.length mind.mind_packets in
34283428
let mind_params_ctxt = Vars.subst_instance_context uinst mind_params_ctxt in
34293429
let allparams = List.map EConstr.of_rel_decl mind_params_ctxt in
34303430
let allparams = safe_combine2_impls allparams i_impls ~default2:Glob_term.Explicit |> param2ctx in

0 commit comments

Comments
 (0)