Skip to content

Commit 38a5a75

Browse files
committed
Adapt to rocq-prover/rocq#20102 (template poly api change)
1 parent 264d924 commit 38a5a75

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

template-coq/src/run_template_monad.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ let unquote_mutual_inductive_entry env evm trm (* of type mutual_inductive_entry
282282
let priv = unquote_map_option unquote_bool priv in
283283
let ctx, univs = match univs with
284284
| UState.Monomorphic_entry ctx ->
285-
if template then Univ.ContextSet.empty, Entries.Template_ind_entry ctx
285+
if template then Univ.ContextSet.empty, Entries.Template_ind_entry { univs = ctx; pseudo_sort_poly = TemplateUnivOnly }
286286
else ctx, Entries.Monomorphic_ind_entry
287287
| UState.Polymorphic_entry uctx -> Univ.ContextSet.empty, Entries.Polymorphic_ind_entry uctx
288288
in

template-coq/src/tm_util.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ module RetypeMindEntry =
283283
let ctx, mind =
284284
match mind.mind_entry_universes with
285285
| Entries.Monomorphic_ind_entry ->
286-
Evd.universe_context_set evm, { mind with mind_entry_universes = Entries.Monomorphic_ind_entry }
287-
| Entries.Template_ind_entry ctx ->
288-
Evd.universe_context_set evm, { mind with mind_entry_universes = Entries.Template_ind_entry ctx }
289-
| Entries.Polymorphic_ind_entry uctx ->
286+
Evd.universe_context_set evm, mind
287+
| Entries.Template_ind_entry _ ->
288+
Evd.universe_context_set evm, mind
289+
| Entries.Polymorphic_ind_entry _ ->
290290
let uctx' = Evd.to_universe_context evm in
291291
Univ.ContextSet.empty, { mind with mind_entry_universes = Entries.Polymorphic_ind_entry uctx' }
292292
in ctx, mind

0 commit comments

Comments
 (0)