diff options
| author | coqbot-app[bot] | 2021-04-18 14:13:11 +0000 |
|---|---|---|
| committer | GitHub | 2021-04-18 14:13:11 +0000 |
| commit | 469e594d276b55c3419b5c56d110adf675f571dc (patch) | |
| tree | 9421ccc4e72e52905f6e374d81f2b93d249b0195 /vernac | |
| parent | f337187f0ac4c2062031225234fd23b436b979b5 (diff) | |
| parent | ad380aca8cad3329c9a3db4b65b933b1179ed6a2 (diff) | |
Merge PR #14112: Cleanup useless environment manipulation in Class declaration
Reviewed-by: ejgallego
Diffstat (limited to 'vernac')
| -rw-r--r-- | vernac/record.ml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vernac/record.ml b/vernac/record.ml index fccc3e4fbd..53f3508806 100644 --- a/vernac/record.ml +++ b/vernac/record.ml @@ -766,11 +766,9 @@ let add_inductive_class env sigma ind = let k = let ctx = oneind.mind_arity_ctxt in let univs = Declareops.inductive_polymorphic_context mind in - let env = push_context ~strict:false (Univ.AUContext.repr univs) env in - let env = push_rel_context ctx env in let inst = Univ.make_abstract_instance univs in let ty = Inductive.type_of_inductive ((mind, oneind), inst) in - let r = Inductive.relevance_of_inductive env ind in + let r = oneind.mind_relevance in { cl_univs = univs; cl_impl = GlobRef.IndRef ind; cl_context = ctx; |
