File tree Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Expand file tree Collapse file tree 2 files changed +38
-8
lines changed Original file line number Diff line number Diff line change @@ -1019,14 +1019,6 @@ module Search = struct
1019
1019
in
1020
1020
let finished = Proofview. finished pv' in
1021
1021
let evm' = Proofview. return pv' in
1022
- let shelf = Evd. shelf evm' in
1023
- assert (Evd. fold_undefined (fun ev _ acc ->
1024
- let okev = Evd. mem evm ev || List. mem ev shelf in
1025
- if not okev then
1026
- Feedback. msg_debug
1027
- (str " leaking evar " ++ int (Evar. repr ev) ++
1028
- spc () ++ pr_ev_with_id evm' ev);
1029
- acc && okev) evm' true );
1030
1022
let _, evm' = Evd. pop_future_goals evm' in
1031
1023
let () = ppdebug 1 (fun () ->
1032
1024
str" Finished resolution with " ++ str(if finished then " a complete" else " an incomplete" ) ++
Original file line number Diff line number Diff line change
1
+ Typeclasses eauto := debug.
2
+
3
+ Class Foo A := foo : A.
4
+
5
+ Hint Extern 0 (Foo _) => lazy beta delta; give_up : typeclass_instances.
6
+
7
+ Lemma t A : A.
8
+ notypeclasses refine ((_ : Foo A)).
9
+ typeclasses eauto .
10
+
11
+ (*
12
+ No more subgoals, but there are some goals you gave up:
13
+
14
+ A
15
+
16
+ You need to go back and solve them.
17
+ *)
18
+
19
+ Abort .
20
+
21
+ Lemma t A : A.
22
+ refine ((_ : Foo A)).
23
+
24
+ (*
25
+ 1: looking for (Foo A) without backtracking
26
+ 1.1: (*external *) (lazy beta delta; give_up) on
27
+ (Foo A), 0 subgoal(s)
28
+ leaking evar 10
29
+ A
30
+
31
+ Anomaly:
32
+ File "tactics/class_tactics.ml", line 1345, characters 11-17: Assertion failed.
33
+ Please report at http://coq.inria.fr/bugs/.
34
+ *)
35
+ Unshelve .
36
+ all:fail. (* no more goals *)
37
+ Fail Qed .
38
+ Abort .
You can’t perform that action at this time.
0 commit comments