diff options
| author | Maxime Dénès | 2018-11-13 10:11:15 +0100 |
|---|---|---|
| committer | Vincent Laporte | 2019-03-26 08:51:00 +0000 |
| commit | e9bbfcd6d589a9e8e5abcd9fbc852a77996c97db (patch) | |
| tree | e293ad303dada2a0fa768c73f3ea79e2721f1c48 /pretyping | |
| parent | b87f1432474bd3ffda6f02eb3ba7edf50114cc23 (diff) | |
Declare initial hint databases in prelude
Previously, they were hard-wired in the ML code.
Diffstat (limited to 'pretyping')
| -rw-r--r-- | pretyping/pretyping.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/pretyping.ml b/pretyping/pretyping.ml index 8e9a2e114b..fa64c21d1e 100644 --- a/pretyping/pretyping.ml +++ b/pretyping/pretyping.ml @@ -265,8 +265,8 @@ let apply_inference_hook hook env sigma frozen = match frozen with let apply_heuristics env sigma fail_evar = (* Resolve eagerly, potentially making wrong choices *) - try solve_unif_constraints_with_heuristics - ~flags:(default_flags_of (Typeclasses.classes_transparent_state ())) env sigma + let flags = default_flags_of (Typeclasses.classes_transparent_state ()) in + try solve_unif_constraints_with_heuristics ~flags env sigma with e when CErrors.noncritical e -> let e = CErrors.push e in if fail_evar then iraise e else sigma |
