Skip to content

Commit 4b8c0b0

Browse files
committed
optcomp
1 parent 9e9db0b commit 4b8c0b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coq_elpi_builtins.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,14 @@ let is_global_level env u =
530530
let () = UGraph.check_declared_universes (Environ.universes env) set in
531531
true
532532
with UGraph.UndeclaredLevel _ -> false
533+
let global_push_context_set x = Global.push_context_set ~strict:true x
533534
[%%else]
534535
let is_global_level env u =
535536
let set = Univ.Level.Set.singleton u in
536537
match UGraph.check_declared_universes (Environ.universes env) set with
537538
| Ok () -> true
538539
| Error _ -> false
540+
let global_push_context_set x = Global.push_context_set x
539541
[%%endif]
540542

541543
let err_if_contains_alg_univ ~depth t =
@@ -2103,7 +2105,7 @@ Supported attributes:
21032105
| Polymorphic_ind_entry uctx ->
21042106
(Polymorphic_entry uctx, UState.Polymorphic_entry uctx, univ_binders)
21052107
in
2106-
let () = Global.push_context_set uctx in
2108+
let () = global_push_context_set uctx in
21072109
let mind =
21082110
declare_mutual_inductive_with_eliminations ~primitive_expected ~default_dep_elim me (uentry', ubinders) ind_impls in
21092111
let ind = mind, 0 in

0 commit comments

Comments
 (0)