Skip to content

Commit

Permalink
[api] [coq] fixup for merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
ejgallego committed Feb 22, 2023
1 parent 383ce41 commit 29d4cf9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions coq/save.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
(* Taken from sertop / Coq *)
let get_all_proof_names () =
(Vernacstate.Declare.get_all_proof_names () [@ocaml.warning "-3"])

let ensure_no_pending_proofs ~in_file ~st =
match st.Vernacstate.lemmas with
| Some lemmas ->
let pfs = Vernacstate.LemmaStack.get_all_proof_names lemmas in
| Some _lemmas ->
let pfs = get_all_proof_names () in
CErrors.user_err
Pp.(
str "There are pending proofs in file "
Expand Down

0 comments on commit 29d4cf9

Please sign in to comment.