aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMaxime Dénès2019-04-04 21:06:34 +0200
committerMaxime Dénès2019-04-10 15:41:43 +0200
commitbf5f0520cf105afb048c6eac5d6de1d3e1a719df (patch)
treedfc7afd2f394958a81c5ce33d1422f72b7e6b36b /plugins
parent3b980d937b5adfbae472ed8a13748a451fdf3450 (diff)
Remove one call to Global.env in Detyping
One other call still remains, but will require to refactor some section-handling code.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/tacsubst.ml4
-rw-r--r--plugins/ssr/ssrview.ml2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ltac/tacsubst.ml b/plugins/ltac/tacsubst.ml
index caaa547a07..8fb238aecb 100644
--- a/plugins/ltac/tacsubst.ml
+++ b/plugins/ltac/tacsubst.ml
@@ -30,7 +30,7 @@ let subst_quantified_hypothesis _ x = x
let subst_declared_or_quantified_hypothesis _ x = x
let subst_glob_constr_and_expr subst (c, e) =
- (Detyping.subst_glob_constr subst c, e)
+ (Detyping.subst_glob_constr (Global.env()) subst c, e)
let subst_glob_constr = subst_glob_constr_and_expr (* shortening *)
@@ -99,7 +99,7 @@ let subst_evaluable subst =
let subst_constr_with_occurrences subst (l,c) = (l,subst_glob_constr subst c)
let subst_glob_constr_or_pattern subst (bvars,c,p) =
- (bvars,subst_glob_constr subst c,subst_pattern subst p)
+ (bvars,subst_glob_constr subst c,subst_pattern (Global.env()) subst p)
let subst_redexp subst =
Redops.map_red_expr_gen
diff --git a/plugins/ssr/ssrview.ml b/plugins/ssr/ssrview.ml
index 537fd7d7b4..075ebf006a 100644
--- a/plugins/ssr/ssrview.ml
+++ b/plugins/ssr/ssrview.ml
@@ -43,7 +43,7 @@ module AdaptorDb = struct
term_view_adaptor_db := AdaptorMap.add k (t :: lk) !term_view_adaptor_db
let subst_adaptor ( subst, (k, t as a)) =
- let t' = Detyping.subst_glob_constr subst t in
+ let t' = Detyping.subst_glob_constr (Global.env()) subst t in
if t' == t then a else k, t'
let in_db =