Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to coq/coq#19620 (Global.push_context_set no strict argument) #696

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/coq_elpi_builtins.ml
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,14 @@ let is_global_level env u =
let () = UGraph.check_declared_universes (Environ.universes env) set in
true
with UGraph.UndeclaredLevel _ -> false
let global_push_context_set x = Global.push_context_set ~strict:true x
[%%else]
let is_global_level env u =
let set = Univ.Level.Set.singleton u in
match UGraph.check_declared_universes (Environ.universes env) set with
| Ok () -> true
| Error _ -> false
let global_push_context_set x = Global.push_context_set x
[%%endif]

let err_if_contains_alg_univ ~depth t =
Expand Down Expand Up @@ -2103,7 +2105,7 @@ Supported attributes:
| Polymorphic_ind_entry uctx ->
(Polymorphic_entry uctx, UState.Polymorphic_entry uctx, univ_binders)
in
let () = Global.push_context_set ~strict:true uctx in
let () = global_push_context_set uctx in
let mind =
declare_mutual_inductive_with_eliminations ~primitive_expected ~default_dep_elim me (uentry', ubinders) ind_impls in
let ind = mind, 0 in
Expand Down
Loading