aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorherbelin2000-07-01 10:10:25 +0000
committerherbelin2000-07-01 10:10:25 +0000
commit9914d778c0d62e8254ee6d0e68ead261edb7c71a (patch)
treec894b7416e3d48e276a32242c8d3d953fac3e679 /parsing
parent3112d687d025a1ca7959c858e4d3c39a7c3fe892 (diff)
index devenu list_index échoue maintenant avec Not_found et plus Failure
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@540 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/astterm.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsing/astterm.ml b/parsing/astterm.ml
index e0e705ee9d..d41e692339 100644
--- a/parsing/astterm.ml
+++ b/parsing/astterm.ml
@@ -290,7 +290,7 @@ let dbize k sigma env allow_soapp lvar =
let n =
try
(list_index (ident_of_nvar locid iddef) lf) -1
- with Failure _ ->
+ with Not_found ->
error_fixname_unbound "dbize (FIX)" false locid iddef in
let ext_env =
List.fold_left (fun env fid -> add_rel (Name fid,()) env) env lf in
@@ -303,7 +303,7 @@ let dbize k sigma env allow_soapp lvar =
let n =
try
(list_index (ident_of_nvar locid iddef) lf) -1
- with Failure _ ->
+ with Not_found ->
error_fixname_unbound "dbize (COFIX)" true locid iddef in
let ext_env =
List.fold_left (fun env fid -> add_rel (Name fid,()) env) env lf in