diff options
author | 2013-02-18 19:45:36 +0000 | |
---|---|---|
committer | 2013-02-18 19:45:36 +0000 | |
commit | 4c1ccb9e2a4b219ac5180115bc4267e1b059cdd1 (patch) | |
tree | 9ecfc27037e02802b1e6884517ca930cb8197cbc /tactics/extratactics.ml4 | |
parent | b101df5536146b9c3cd3569fc3b6334650f2a300 (diff) |
Removing Exc_located and using the new exception enrichement
mechanism to retrieve the same information.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16215 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/extratactics.ml4')
-rw-r--r-- | tactics/extratactics.ml4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tactics/extratactics.ml4 b/tactics/extratactics.ml4 index f802788d4..7a8cccc6d 100644 --- a/tactics/extratactics.ml4 +++ b/tactics/extratactics.ml4 @@ -596,9 +596,10 @@ let hResolve id c occ t gl = let rec resolve_hole t_hole = try Pretyping.understand sigma env t_hole - with - | Loc.Exc_located (loc,Pretype_errors.PretypeError (_,_,Pretype_errors.UnsolvableImplicit _)) -> - resolve_hole (subst_hole_with_term (fst (Loc.unloc loc)) c_raw t_hole) + with + | Pretype_errors.PretypeError (_,_,Pretype_errors.UnsolvableImplicit _) as e -> + let loc = match Loc.get_loc e with None -> Loc.ghost | Some loc -> loc in + resolve_hole (subst_hole_with_term (fst (Loc.unloc loc)) c_raw t_hole) in let t_constr = resolve_hole (subst_var_with_hole occ id t_raw) in let t_constr_type = Retyping.get_type_of env sigma t_constr in |