diff options
| author | Hugo Herbelin | 2018-12-27 08:56:23 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2019-02-19 15:06:00 +0100 |
| commit | 21bcc5f6fc8db1ccad16dea89f1705a799c1d090 (patch) | |
| tree | 3ebd35fdaf2cbee91c374ea2c400e35f603df6c3 /interp/notation_ops.ml | |
| parent | 7c62153610f54a96cdded0455af0fff7ff91a53a (diff) | |
Notations: Enforce strong evaluation of cases_pattern_of_glob_constr.
This is because it can raise Not_found in depth and we need to catch
it at the right time.
Diffstat (limited to 'interp/notation_ops.ml')
| -rw-r--r-- | interp/notation_ops.ml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml index 890c24e633..7d7e10a05b 100644 --- a/interp/notation_ops.ml +++ b/interp/notation_ops.ml @@ -908,11 +908,8 @@ let bind_term_as_binding_env alp (terms,termlists,binders,binderlists as sigma) (* TODO: look at the consequences for alp *) alp, add_env alp sigma var (DAst.make @@ GVar id) -let force_cases_pattern c = - DAst.make ?loc:c.CAst.loc (DAst.get c) - let bind_binding_as_term_env alp (terms,termlists,binders,binderlists as sigma) var c = - let pat = try force_cases_pattern (cases_pattern_of_glob_constr Anonymous c) with Not_found -> raise No_match in + let pat = try cases_pattern_of_glob_constr Anonymous c with Not_found -> raise No_match in try (* If already bound to a binder, unify the term and the binder *) let patl' = Id.List.assoc var binders in |
