aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimonBoulier2020-01-08 10:20:20 +0100
committerSimonBoulier2020-01-08 10:20:20 +0100
commit9cbd740cd7e8936a9411528fc5dd4d5ddb0d3c1d (patch)
tree514fff0539a5d9aa291fe88889d5e13c21cdba62
parentbb22f188b46527fb5829562edc946b743b326309 (diff)
Trailing implicit: Maxime's suggestions
-rw-r--r--doc/sphinx/language/gallina-extensions.rst2
-rw-r--r--interp/impargs.ml1
2 files changed, 1 insertions, 2 deletions
diff --git a/doc/sphinx/language/gallina-extensions.rst b/doc/sphinx/language/gallina-extensions.rst
index 6be501199d..d85be0646a 100644
--- a/doc/sphinx/language/gallina-extensions.rst
+++ b/doc/sphinx/language/gallina-extensions.rst
@@ -1728,7 +1728,7 @@ Declaring Implicit Arguments
To know which are the implicit arguments of an object, use the
command :cmd:`Print Implicit` (see :ref:`displaying-implicit-args`).
-.. exn:: Argument id is a trailing implicit, so it can't be declared non maximal. Please use %{ %} instead of [ ].
+.. exn:: Argument @ident is a trailing implicit, so it can't be declared non maximal. Please use %{ %} instead of [ ].
For instance in
diff --git a/interp/impargs.ml b/interp/impargs.ml
index b22407c2b7..e2c732809a 100644
--- a/interp/impargs.ml
+++ b/interp/impargs.ml
@@ -646,7 +646,6 @@ let maybe_declare_manual_implicits local ref ?enriching l =
if List.exists (fun x -> x.CAst.v <> None) l then
declare_manual_implicits local ref ?enriching l
-(* TODO: either turn these warnings on and document them, or handle these cases sensibly *)
let msg_trailing_implicit id =
user_err (strbrk ("Argument " ^ Names.Id.to_string id ^ " is a trailing implicit, so it can't be declared non maximal. Please use { } instead of [ ]."))