aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2016-04-20 15:23:41 +0200
committerPierre-Marie Pédrot2016-05-04 13:47:12 +0200
commit4740e82e4af6d38e9cc55dfe1a05db87f73bf1e6 (patch)
treeaa15f15f7729a5879857e59717c9c298669168ca /tactics
parent2aae561fe772a08b03ea8a96ee28372408bf233a (diff)
Removing external uses of Val.inject and making Geninterp.interp return Val.t
Diffstat (limited to 'tactics')
-rw-r--r--tactics/auto.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tactics/auto.ml b/tactics/auto.ml
index 46f484bf06..6b58baa997 100644
--- a/tactics/auto.ml
+++ b/tactics/auto.ml
@@ -156,7 +156,10 @@ let conclPattern concl pat tac =
constr_bindings env sigma >>= fun constr_bindings ->
let open Genarg in
let open Geninterp in
- let inj c = Val.inject (val_tag (topwit Constrarg.wit_constr)) c in
+ let inj c = match val_tag (topwit Constrarg.wit_constr) with
+ | Val.Base tag -> Val.Dyn (tag, c)
+ | _ -> assert false
+ in
let fold id c accu = Id.Map.add id (inj c) accu in
let lfun = Id.Map.fold fold constr_bindings Id.Map.empty in
let ist = { lfun; extra = TacStore.empty } in