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) #619

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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: 2 additions & 2 deletions src/principles.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,7 @@ let build_equations ~pm with_ind env evd ?(alias:alias option) rec_info progs =
let univs, ubinders = Evd.univ_entry ~poly sigma in
let uctx = match univs with
| UState.Monomorphic_entry ctx ->
let () = Global.push_context_set ~strict:true ctx in
let () = Global.push_context_set ctx in
Entries.Monomorphic_ind_entry
| UState.Polymorphic_entry uctx -> Entries.Polymorphic_ind_entry uctx
in
Expand Down Expand Up @@ -1759,7 +1759,7 @@ let build_equations ~pm with_ind env evd ?(alias:alias option) rec_info progs =
if not poly then
(* Declare the universe context necessary to typecheck the following
definitions once and for all. *)
(Global.push_context_set ~strict:true (Evd.universe_context_set !evd);
(Global.push_context_set (Evd.universe_context_set !evd);
evd := Evd.from_env (Global.env ()))
else ()
in
Expand Down
2 changes: 1 addition & 1 deletion src/subterm.ml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ let derive_subterm ~pm env sigma ~poly (ind, u as indu) =
let univs, ubinders = Evd.univ_entry ~poly sigma in
let uctx = match univs with
| UState.Monomorphic_entry ctx ->
let () = Global.push_context_set ~strict:true ctx in
let () = Global.push_context_set ctx in
Entries.Monomorphic_ind_entry
| UState.Polymorphic_entry uctx -> Entries.Polymorphic_ind_entry uctx
in
Expand Down
Loading