aboutsummaryrefslogtreecommitdiff
path: root/tactics/hints.ml
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 /tactics/hints.ml
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 'tactics/hints.ml')
-rw-r--r--tactics/hints.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tactics/hints.ml b/tactics/hints.ml
index f49b1660b8..7eeee7ee07 100644
--- a/tactics/hints.ml
+++ b/tactics/hints.ml
@@ -1064,7 +1064,7 @@ let subst_autohint (subst, obj) =
in
let subst_hint (k,data as hint) =
let k' = Option.Smart.map subst_key k in
- let pat' = Option.Smart.map (subst_pattern subst) data.pat in
+ let pat' = Option.Smart.map (subst_pattern (Global.env()) subst) data.pat in
let subst_mps subst c = EConstr.of_constr (subst_mps subst (EConstr.Unsafe.to_constr c)) in
let code' = match data.code.obj with
| Res_pf (c,t,ctx) ->