aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
Diffstat (limited to 'interp')
-rw-r--r--interp/notation_ops.ml2
-rw-r--r--interp/reserve.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml
index 3429ab7b9a..c5cc1438b8 100644
--- a/interp/notation_ops.ml
+++ b/interp/notation_ops.ml
@@ -710,7 +710,7 @@ and match_equations u alp metas sigma (_,_,patl1,rhs1) (patl2,rhs2) =
match_in u alp metas sigma rhs1 rhs2
let match_notation_constr u c (metas,pat) =
- let vars = List.split_by (fun (_,(_,x)) -> x <> NtnTypeBinderList) metas in
+ let vars = List.partition (fun (_,(_,x)) -> x <> NtnTypeBinderList) metas in
let vars = (List.map fst (fst vars), List.map fst (snd vars)) in
let terms,termlists,binders = match_ false u [] vars ([],[],[]) c pat in
(* Reorder canonically the substitution *)
diff --git a/interp/reserve.ml b/interp/reserve.ml
index 7a2d4bfe7e..914a85fe8e 100644
--- a/interp/reserve.ml
+++ b/interp/reserve.ml
@@ -79,7 +79,7 @@ let revert_reserved_type t =
let t = Detyping.detype false [] [] t in
List.try_find
(fun (pat,id) ->
- try let _ = Notation_ops.match_notation_constr false t ([],pat) in Name id
+ try let _ = Notation_ops.match_notation_constr false t ([], pat) in Name id
with Notation_ops.No_match -> failwith "") l
with Not_found | Failure _ -> Anonymous