aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-02-06 20:16:37 +0100
committerGaëtan Gilbert2020-02-06 21:17:56 +0100
commit791797fce5e11b83b88e6b869678ee7c39703043 (patch)
treead542f031d039da441d08e211ab97d3d4d4f61ad /plugins
parent2e1c1bc858780a79b4196528500dda4117d4cfba (diff)
unsafe_type_of -> type_of in Rewrite.resolve_morphism
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/rewrite.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ltac/rewrite.ml b/plugins/ltac/rewrite.ml
index 2d630e9bd4..7cb359b8cd 100644
--- a/plugins/ltac/rewrite.ml
+++ b/plugins/ltac/rewrite.ml
@@ -789,7 +789,8 @@ let resolve_morphism env avoid oldt m ?(fnewt=fun x -> x) args args' (b,cstr) ev
let morphargs, morphobjs = Array.chop first args in
let morphargs', morphobjs' = Array.chop first args' in
let appm = mkApp(m, morphargs) in
- let appmtype = Typing.unsafe_type_of env (goalevars evars) appm in
+ let evd, appmtype = Typing.type_of env (goalevars evars) appm in
+ let evars = evd, snd evars in
let cstrs = List.map
(Option.map (fun r -> r.rew_car, get_opt_rew_rel r.rew_prf))
(Array.to_list morphobjs')