diff options
author | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-11-30 14:58:45 +0100 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2017-11-30 14:58:45 +0100 |
commit | 4baccd824d1fe40c57b25c6d3ce04a54c6a38420 (patch) | |
tree | fc9a26300e3dc775c86151db3142b23625be8b1c /vernac | |
parent | ee45637ac2431fe2df1994f2337d8801e2aeff9a (diff) |
Remove unused boolean from cl_context field of Typeclasses.typeclass
Diffstat (limited to 'vernac')
-rw-r--r-- | vernac/classes.ml | 2 | ||||
-rw-r--r-- | vernac/record.ml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vernac/classes.ml b/vernac/classes.ml index b80741269..109584436 100644 --- a/vernac/classes.ml +++ b/vernac/classes.ml @@ -143,7 +143,7 @@ let new_instance ?(abstract=false) ?(global=false) ?(refine= !refine_instance) Implicit_quantifiers.implicit_application Id.Set.empty ~allow_partial:false (fun avoid (clname, _) -> match clname with - | Some (cl, b) -> + | Some cl -> let t = CAst.make @@ CHole (None, Misctypes.IntroAnonymous, None) in t, avoid | None -> failwith ("new instance: under-applied typeclass")) diff --git a/vernac/record.ml b/vernac/record.ml index 1d255b08e..6b8753b60 100644 --- a/vernac/record.ml +++ b/vernac/record.ml @@ -520,7 +520,7 @@ let declare_class finite def cum ubinders univs id idbuild paramimpls params ari let ctx_context = List.map (fun decl -> match Typeclasses.class_of_constr Evd.empty (EConstr.of_constr (RelDecl.get_type decl)) with - | Some (_, ((cl,_), _)) -> Some (cl.cl_impl, true) + | Some (_, ((cl,_), _)) -> Some cl.cl_impl | None -> None) params, params in |