Skip to content

Commit d0a75be

Browse files
authored
Merge pull request #1220 from ppedrot/declare-clear-cruft
Adapt to rocq-prover/rocq#21384.
2 parents 21bc62f + afa139b commit d0a75be

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

template-rocq/src/plugin_core.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ let tmLemma (nm : ident) ?poly:(poly=false)(ty : term) : kername tm =
131131
let cinfo = Declare.CInfo.make ~name:nm ~typ:cty () in
132132
let info = Declare.Info.make ~poly ~kind () in
133133
(* This should register properly with the interpretation extension *)
134-
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx:ctx ~obl_hook ~opaque:false obls in
135-
pm
134+
Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx:ctx ~obl_hook ~opaque:false obls
136135

137136
let tmFreshName (nm : ident) : ident tm =
138137
fun ~st env evd success _fail ->

template-rocq/src/run_template_monad.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,7 @@ let rec run_template_program_rec ~poly ?(intactic=false) (k : Constr.t Plugin_co
446446
k ~st:pm env evm (EConstr.to_constr evm t)) in (* todo better *)
447447
let cinfo = Declare.CInfo.make ~name:ident ~typ:cty () in
448448
let info = Declare.Info.make ~poly ~kind () in
449-
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx ~obl_hook ~opaque:false obls in
450-
pm
449+
Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx ~obl_hook ~opaque:false obls
451450

452451
| TmQuote trm ->
453452
(* user should do the reduction (using tmEval) if they want *)

0 commit comments

Comments
 (0)