Skip to content

Commit 15a4be6

Browse files
committed
stop spurious shelving
1 parent 35b7dce commit 15a4be6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pretyping/evarsolve.ml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,10 +1586,6 @@ let instantiate_evar unify flags env evd evk body =
15861586
let allowed_evars = AllowedEvars.remove evk flags.allowed_evars in
15871587
let flags = { flags with allowed_evars } in
15881588
let evd' = check_evar_instance unify flags env evd evk body in
1589-
let evd' = try
1590-
let evk' = fst (EConstr.destEvar evd' (fst (EConstr.decompose_app evd' body))) in
1591-
if List.mem evk (Evd.shelf evd') then Evd.shelve evd' [evk'] else evd'
1592-
with DestKO -> evd' in
15931589
Evd.define evk body evd'
15941590

15951591
(* We try to instantiate the evar assuming the body won't depend

0 commit comments

Comments
 (0)