diff options
| author | Pierre-Marie Pédrot | 2016-11-06 19:59:28 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-02-14 17:26:34 +0100 |
| commit | 258c8502eafd3e078a5c7478a452432b5c046f71 (patch) | |
| tree | d4ce21b23a67056242410fbd78362213700af099 /ltac/tactic_matching.ml | |
| parent | 77e638121b6683047be915da9d0499a58fcb6e52 (diff) | |
Constr_matching API using EConstr.
Diffstat (limited to 'ltac/tactic_matching.ml')
| -rw-r--r-- | ltac/tactic_matching.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ltac/tactic_matching.ml b/ltac/tactic_matching.ml index 43a58f6b2e..58998c96ed 100644 --- a/ltac/tactic_matching.ml +++ b/ltac/tactic_matching.ml @@ -233,7 +233,7 @@ module PatternMatching (E:StaticEnvironment) = struct | Term p -> begin try - put_subst (Constr_matching.extended_matches E.env E.sigma p term) <*> + put_subst (Constr_matching.extended_matches E.env E.sigma p (EConstr.of_constr term)) <*> return lhs with Constr_matching.PatternMatchingFailure -> fail end @@ -252,7 +252,7 @@ module PatternMatching (E:StaticEnvironment) = struct | Some nctx -> Proofview.tclOR (k lhs nctx) (fun e -> (map s e).stream k ctx) } in - map (Constr_matching.match_subterm_gen E.env E.sigma with_app_context p term) imatching_error + map (Constr_matching.match_subterm_gen E.env E.sigma with_app_context p (EConstr.of_constr term)) imatching_error (** [rule_match_term term rule] matches the term [term] with the |
