diff options
| author | Maxime Dénès | 2016-10-24 01:25:40 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2016-10-27 10:12:55 +0200 |
| commit | 5da679d276e106a62cc3368ceb7358da289ea10a (patch) | |
| tree | 6dc390761cfe8ef2ab5ae9537a5c0a9266d4e289 /library | |
| parent | 7c047370dc9032e3ded3365a45de5b92e7c9033f (diff) | |
Complete overhaul of the Arguments vernacular.
The main point of this change is to fix #3035: Avoiding trailing
arguments in the Arguments command, and related issues occurring in
HoTT for instance. When the "assert" flag is not specified, we now
accept prefixes of the list of arguments.
The semantics of _ w.r.t. to renaming has changed. Previously, it meant
"restore the original name inferred from the type". Now it means "don't
change the current name".
The syntax of arguments is now restricted. Modifiers like /, ! and
scopes are allowed only in the first arguments list.
We also add *a lot* of missing checks on input values and fix various
bugs.
Note that this code is still way too complex for what it does, due to
the complexity of the implicit arguments, reduction behaviors and renaming
APIs.
Diffstat (limited to 'library')
| -rw-r--r-- | library/impargs.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/impargs.ml b/library/impargs.ml index bce7a15cbe..a709aedeee 100644 --- a/library/impargs.ml +++ b/library/impargs.ml @@ -494,7 +494,7 @@ let implicits_of_global ref = let rename imp name = match imp, name with | Some (_, x,y), Name id -> Some (id, x,y) | _ -> imp in - List.map2 (fun (t, il) rl -> t, List.map2 rename il rl) l rename_l + List.map (fun (t, il) -> t, List.map2 rename il rename_l) l with Not_found -> l | Invalid_argument _ -> anomaly (Pp.str "renamings list and implicits list have different lenghts") |
