From fc60feb7a3ccd9ec88f6c46929f5fa8172bd7885 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Wed, 31 Jul 2019 13:32:25 +0200 Subject: Specialize the section API. We split the function used to retrieve the local context from the one used to provide the implicit status of each binder. Most of the users only rely on the former indeed. --- vernac/classes.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vernac') diff --git a/vernac/classes.ml b/vernac/classes.ml index efe452d5f1..075d89d0df 100644 --- a/vernac/classes.ml +++ b/vernac/classes.ml @@ -179,7 +179,7 @@ let discharge_class (_,cl) = let open CVars in let repl = Lib.replacement_context () in let rel_of_variable_context ctx = List.fold_right - ( fun (decl,_) (ctx', subst) -> + ( fun decl (ctx', subst) -> let decl' = decl |> NamedDecl.map_constr (substn_vars 1 subst) |> NamedDecl.to_rel_decl in (decl' :: ctx', NamedDecl.get_id decl :: subst) ) ctx ([], []) in -- cgit v1.2.3