diff options
| author | Emilio Jesus Gallego Arias | 2020-05-22 03:34:03 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-05-26 18:28:08 +0200 |
| commit | d9d4dcb41d8a63b7d535200b68bcbef4a38993df (patch) | |
| tree | bfb3c3cd7f27bf6634382b4003c3e362b7be4564 /vernac/declare.ml | |
| parent | baef9828c3e6ea11fce2e172797f0f67e51885ad (diff) | |
[declare] Turn restrict_ucontext hack into an internal parameter
This is not needed outside of `Declare` now.
Diffstat (limited to 'vernac/declare.ml')
| -rw-r--r-- | vernac/declare.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vernac/declare.ml b/vernac/declare.ml index 0c98ac9070..65f0265b3e 100644 --- a/vernac/declare.ml +++ b/vernac/declare.ml @@ -943,7 +943,7 @@ module Recthm = struct } end -let declare_mutually_recursive ~opaque ~scope ~kind ~poly ~uctx ~udecl ~ntns ~rec_declaration ~possible_indexes ?(restrict_ucontext=true) fixitems = +let declare_mutually_recursive_core ~opaque ~scope ~kind ~poly ~uctx ~udecl ~ntns ~rec_declaration ~possible_indexes ?(restrict_ucontext=true) fixitems = let vars, fixdecls, indexes = mutual_make_bodies ~fixitems ~rec_declaration ~possible_indexes in let uctx, univs = @@ -969,6 +969,8 @@ let declare_mutually_recursive ~opaque ~scope ~kind ~poly ~uctx ~udecl ~ntns ~re List.iter (Metasyntax.add_notation_interpretation (Global.env())) ntns; csts +let declare_mutually_recursive = declare_mutually_recursive_core ~restrict_ucontext:true + let warn_let_as_axiom = CWarnings.create ~name:"let-as-axiom" ~category:"vernacular" Pp.(fun id -> strbrk "Let definition" ++ spc () ++ Names.Id.print id ++ @@ -1540,7 +1542,7 @@ let declare_mutual_definition l = (* Declare the recursive definitions *) let udecl = UState.default_univ_decl in let kns = - declare_mutually_recursive ~scope ~opaque ~kind ~udecl ~ntns + declare_mutually_recursive_core ~scope ~opaque ~kind ~udecl ~ntns ~uctx:first.prg_ctx ~rec_declaration ~possible_indexes ~poly ~restrict_ucontext:false fixitems in |
