Skip to content

Commit

Permalink
Adapt to coq/coq#17585 (revised warning API)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed May 22, 2023
1 parent eab10de commit 6aaf7e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions template-coq/src/quoter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ let cast_prop = ref (false)

(* whether Set Template Cast Propositions is on, as needed for erasure in Certicoq *)
let is_cast_prop () = !cast_prop

let metacoq_cat = CWarnings.create_category ~name:"metacoq" ()

let warn_primitive_turned_into_axiom =
CWarnings.create ~name:"primitive-turned-into-axiom" ~category:"metacoq"
CWarnings.create ~name:"primitive-turned-into-axiom" ~category:metacoq_cat
Pp.(fun prim -> str "Quoting primitive " ++ str prim ++ str " into an axiom.")
let warn_ignoring_private_polymorphic_universes =
CWarnings.create ~name:"private-polymorphic-universes-ignored" ~category:"metacoq"
CWarnings.create ~name:"private-polymorphic-universes-ignored" ~category:metacoq_cat
Pp.(fun () -> str "Ignoring private polymorphic universes.")

let toDecl (old: Name.t Context.binder_annot * ((Constr.constr) option) * Constr.constr) : Constr.rel_declaration =
Expand Down

0 comments on commit 6aaf7e3

Please sign in to comment.