diff options
| author | Matthieu Sozeau | 2014-09-19 01:13:39 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2014-09-19 01:13:39 +0200 |
| commit | 07e4438bd758c2ced8caf09a6961ccd77d84e42b (patch) | |
| tree | 79f349b7e9d0f3801accce22395fbbf9c031e9d4 | |
| parent | 1667d854c9b6a648082731acb1553c879e561940 (diff) | |
Revert change of e_contextually as it needlessly expands all primitive
projections in the term.
| -rw-r--r-- | pretyping/tacred.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/tacred.ml b/pretyping/tacred.ml index 8875d1d936..39015d89a9 100644 --- a/pretyping/tacred.ml +++ b/pretyping/tacred.ml @@ -973,9 +973,9 @@ let e_contextually byhead (occs,c) f env sigma t = else t with ConstrMatching.PatternMatchingFailure -> - Evarsolve.map_constr_with_binders_left_to_right + map_constr_with_binders_left_to_right (fun d (env,c) -> (push_rel d env,lift_pattern 1 c)) - traverse envc sigma t + traverse envc t in let t' = traverse (env,c) t in if List.exists (fun o -> o >= !pos) locs then error_invalid_occurrence locs; |
