aboutsummaryrefslogtreecommitdiff
path: root/tactics
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-02-06 17:41:49 +0100
committerGaëtan Gilbert2020-02-06 21:17:56 +0100
commit48b142d0e915e946274c14ab354f174cc5b6df51 (patch)
treedbae5f5dc02cacfa39f11553ff537889eb818299 /tactics
parent6bf68189b74fed332a064257b9f1b7e46b6309b5 (diff)
Remove Clenv.mk_clenv_type_of (hidden unsafe_type_of)
Diffstat (limited to 'tactics')
-rw-r--r--tactics/tactics.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index 827f44ec1e..609b752716 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -4772,7 +4772,10 @@ let destruct ev clr c l e =
let elim_scheme_type elim t =
Proofview.Goal.enter begin fun gl ->
- let clause = mk_clenv_type_of gl elim in
+ let env = Proofview.Goal.env gl in
+ let sigma = Proofview.Goal.sigma gl in
+ let sigma, elimt = Typing.type_of env sigma elim in
+ let clause = mk_clenv_from_env env sigma None (elim,elimt) in
match EConstr.kind clause.evd (last_arg clause.evd clause.templval.rebus) with
| Meta mv ->
let clause' =