Skip to content

Commit

Permalink
Merge pull request #835 from SkySkimmer/pgenarg
Browse files Browse the repository at this point in the history
Adapt to coq/coq#17220 (genargs are not holes)
  • Loading branch information
ppedrot authored Feb 10, 2023
2 parents 84f41d7 + 3358c3d commit 558a314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template-coq/src/plugin_core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ let tmAxiom (nm : ident) ?poly:(poly=false) (typ : term) : kername tm =
let tmLemma (nm : ident) ?poly:(poly=false)(ty : term) : kername tm =
fun ~st env evm success _fail ->
let kind = Decls.(IsDefinition Definition) in
let hole = CAst.make (Constrexpr.CHole (Some Evar_kinds.(QuestionMark default_question_mark), Namegen.IntroAnonymous, None)) in
let hole = CAst.make (Constrexpr.CHole (Some Evar_kinds.(QuestionMark default_question_mark), Namegen.IntroAnonymous)) in
Feedback.msg_debug (Pp.str "interp_casted called");
let evm, (c, _) =
try Constrintern.interp_casted_constr_evars_impls ~program_mode:true env evm hole (EConstr.of_constr ty)
Expand Down
2 changes: 1 addition & 1 deletion template-coq/src/run_template_monad.ml
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ let rec run_template_program_rec ~poly ?(intactic=false) (k : Constr.t Plugin_co
| TmLemma (name,typ) ->
let name = reduce_all env evm name in
let kind = Decls.(IsDefinition Definition) in
let hole = CAst.make (Constrexpr.CHole (None, Namegen.IntroAnonymous, None)) in
let hole = CAst.make (Constrexpr.CHole (None, Namegen.IntroAnonymous)) in
let evm, (c, _) = Constrintern.interp_casted_constr_evars_impls ~program_mode:true env evm hole (EConstr.of_constr typ) in
let ident = unquote_ident name in
RetrieveObl.check_evars env evm;
Expand Down

0 comments on commit 558a314

Please sign in to comment.