aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/himsg.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml
index 9d2160cb68..01f69ce05c 100644
--- a/toplevel/himsg.ml
+++ b/toplevel/himsg.ml
@@ -323,13 +323,12 @@ let explain_hole_kind env = function
str "a type for " ++ Nameops.pr_id id
| BinderType Anonymous ->
str "a type for this anonymous binder"
- | ImplicitArg (c,n) ->
+ | ImplicitArg (c,(n,ido)) ->
if !Options.v7 then
str "the " ++ pr_ord n ++
str " implicit argument of " ++ Nametab.pr_global_env Idset.empty c
else
- let imps = Impargs.implicits_of_global c in
- let id = Impargs.name_of_implicit (List.nth imps (n-1)) in
+ let id = out_some ido in
str "an instance for the implicit parameter " ++
pr_id id ++ spc () ++ str "of" ++
spc () ++ Nametab.pr_global_env Idset.empty c