aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-02-06 20:28:00 +0100
committerGaëtan Gilbert2020-02-06 21:17:56 +0100
commitb0b473f5867d216b815dd1acb1b4da2e794d1095 (patch)
treefae9c97aa360d85f979ee6579cc3a8c2170ec305 /plugins
parent6283c94c640d6b1f911b644583ee656a7a8b9a1f (diff)
unsafe_type_of -> get_type_of in Rewrite.symmetry_in
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/rewrite.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ltac/rewrite.ml b/plugins/ltac/rewrite.ml
index 2a1f85b13f..a0eefd1a39 100644
--- a/plugins/ltac/rewrite.ml
+++ b/plugins/ltac/rewrite.ml
@@ -2196,10 +2196,10 @@ let setoid_transitivity c =
(transitivity_red true c)
let setoid_symmetry_in id =
- let open Tacmach.New in
Proofview.Goal.enter begin fun gl ->
- let sigma = project gl in
- let ctype = pf_unsafe_type_of gl (mkVar id) in
+ let env = Proofview.Goal.env gl in
+ let sigma = Proofview.Goal.sigma gl in
+ let ctype = Retyping.get_type_of env sigma (mkVar id) in
let binders,concl = decompose_prod_assum sigma ctype in
let (equiv, args) = decompose_app sigma concl in
let rec split_last_two = function