aboutsummaryrefslogtreecommitdiff
path: root/tactics/redexpr.ml
diff options
context:
space:
mode:
authorMaxime Dénès2019-04-05 10:02:18 +0200
committerMaxime Dénès2019-04-10 15:41:44 +0200
commit61d53a17c594de1ea37b37f6215319d996ec31ea (patch)
tree83c55ef28fd53d6f8af965e0c87ee6a168f90bb4 /tactics/redexpr.ml
parent69c31d24fc8d058070cc7cadc1df28bfac7f6497 (diff)
Remove calls to Global.env in Patternops
Diffstat (limited to 'tactics/redexpr.ml')
-rw-r--r--tactics/redexpr.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/tactics/redexpr.ml b/tactics/redexpr.ml
index 7ff88bb4b7..447b908a1d 100644
--- a/tactics/redexpr.ml
+++ b/tactics/redexpr.ml
@@ -259,10 +259,12 @@ let subst_mps subst c =
EConstr.of_constr (Mod_subst.subst_mps subst (EConstr.Unsafe.to_constr c))
let subst_red_expr subs =
+ let env = Global.env () in
+ let sigma = Evd.from_env env in
Redops.map_red_expr_gen
(subst_mps subs)
(Mod_subst.subst_evaluable_reference subs)
- (Patternops.subst_pattern (Global.env()) subs)
+ (Patternops.subst_pattern env sigma subs)
let inReduction : bool * string * red_expr -> obj =
declare_object