diff options
| author | letouzey | 2013-10-23 22:17:11 +0000 |
|---|---|---|
| committer | letouzey | 2013-10-23 22:17:11 +0000 |
| commit | ef42739eadeb6ec3fc98b5beaa13bd859de44d15 (patch) | |
| tree | d0db75605b1ff04fe13f70f0a02aacbee7465cf0 /pretyping/patternops.ml | |
| parent | 5e6145c871eea1e94566b252b4bfc4cd752f42d5 (diff) | |
cList.index is now cList.index_f, same for index0
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16921 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/patternops.ml')
| -rw-r--r-- | pretyping/patternops.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pretyping/patternops.ml b/pretyping/patternops.ml index 329af85266..79e3913a91 100644 --- a/pretyping/patternops.ml +++ b/pretyping/patternops.ml @@ -206,7 +206,10 @@ let instantiate_pattern sigma lvar c = let ctx,c = Id.Map.find id lvar in try let inst = - List.map (fun id -> mkRel (List.index (Name id) vars)) ctx in + List.map + (fun id -> mkRel (List.index Name.equal (Name id) vars)) + ctx + in let c = substl inst c in snd (pattern_of_constr sigma c) with Not_found (* List.index failed *) -> @@ -301,7 +304,7 @@ let err loc pp = user_err_loc (loc,"pattern_of_glob_constr", pp) let rec pat_of_raw metas vars = function | GVar (_,id) -> - (try PRel (List.index (Name id) vars) + (try PRel (List.index Name.equal (Name id) vars) with Not_found -> PVar id) | GPatVar (_,(false,n)) -> metas := n::!metas; PMeta (Some n) |
