aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics
diff options
context:
space:
mode:
authorGravatar Arnaud Spiwack <arnaud@spiwack.net>2014-07-31 10:57:14 +0200
committerGravatar Arnaud Spiwack <arnaud@spiwack.net>2014-08-01 19:18:58 +0200
commitf5b2b3ac11763616acc7c418fa566554f2556b4a (patch)
tree48a7dc43dda772d9f076615af28b0c5dae3862a5 /tactics
parent09b89545a5d349a29929965334963890740c05b7 (diff)
Untyped terms in ltac: simplify [coerce_to_uconstr].
Following advice by Hugo Herbelin.
Diffstat (limited to 'tactics')
-rw-r--r--tactics/taccoerce.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/tactics/taccoerce.ml b/tactics/taccoerce.ml
index b115311d9..415221819 100644
--- a/tactics/taccoerce.ml
+++ b/tactics/taccoerce.ml
@@ -152,11 +152,8 @@ let coerce_to_uconstr env v =
if has_type v (topwit wit_uconstr) then
out_gen (topwit wit_uconstr) v
else
- let (ctx,c) = coerce_to_constr env v in
- (* spiwack: I'm not sure what I'm doing with this context.
- May be wrong. *)
- let ctx = List.map (fun id -> Name id) ctx in
- Detyping.detype false [] ctx c
+ let (_ctx,c) = coerce_to_constr env v in
+ Detyping.detype false [] [] c
let coerce_to_closed_constr env v =
let ids,c = coerce_to_constr env v in