diff options
| author | Pierre-Marie Pédrot | 2019-09-28 00:02:17 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2019-09-28 00:02:17 +0200 |
| commit | 7e70815c2f326518c71f25fd9b222281a757572b (patch) | |
| tree | 4ebf6169eee20e8595c2f640e74606297869eeda | |
| parent | acbf569a3b9f242fd704af9124c58697b8762d0d (diff) | |
Remove the monomorphic universe libobject.
No need to keep track of it this way now that this data is part of the
kernel.
| -rw-r--r-- | tactics/declare.ml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tactics/declare.ml b/tactics/declare.ml index bd47fc147e..e418240d3a 100644 --- a/tactics/declare.ml +++ b/tactics/declare.ml @@ -35,11 +35,6 @@ type import_status = ImportDefaultBehavior | ImportNeedQualified (** Monomorphic universes need to survive sections. *) -let input_universe_context : Univ.ContextSet.t -> Libobject.obj = - declare_object @@ local_object "Monomorphic section universes" - ~cache:(fun (na, uctx) -> Global.push_context_set false uctx) - ~discharge:(fun (_, x) -> Some x) - let name_instance inst = let map lvl = match Univ.Level.name lvl with | None -> (* Having Prop/Set/Var as section universes makes no sense *) @@ -65,7 +60,7 @@ let declare_universe_context ~poly ctx = let nas = name_instance (Univ.UContext.instance uctx) in Global.push_section_context (nas, uctx) else - Lib.add_anonymous_leaf (input_universe_context ctx) + Global.push_context_set false ctx (** Declaration of constants and parameters *) |
