@@ -214,6 +214,7 @@ and rk_categories = {
214214 rkc_lemmas : bool ;
215215 rkc_ops : bool ;
216216 rkc_preds : bool ;
217+ rkc_exns : bool ;
217218 rkc_types : bool ;
218219 rkc_module : bool ;
219220 rkc_modtype : bool ;
@@ -230,7 +231,7 @@ type octxt = {
230231module Renaming : sig
231232 val rename1 : octxt -> theory_renaming -> renaming
232233end = struct
233- let rename1 oc (k , (r1 , r2 )) : renaming =
234+ let rename1 oc (( k : theory_renaming_kind list ) , (r1 , r2 )) : renaming =
234235 let e1 =
235236 try EcRegexp. regexp (unloc r1)
236237 with EcRegexp. Error _ -> clone_error oc.oc_env (CE_InvalidRE (unloc r1)) in
@@ -253,14 +254,15 @@ end = struct
253254 | `Type -> { rk with rkc_types = true ; }
254255 | `Op -> { rk with rkc_ops = true ; }
255256 | `Pred -> { rk with rkc_preds = true ; }
257+ | `Exn -> { rk with rkc_exns = true ; }
256258 | `Module -> { rk with rkc_module = true ; }
257259 | `ModType -> { rk with rkc_modtype = true ; }
258260 | `Theory -> { rk with rkc_theory = true ; } in
259261
260262 let init = {
261- rkc_lemmas = false ; rkc_types = false ; rkc_ops = false ;
262- rkc_preds = false ; rkc_module = false ; rkc_modtype = false ;
263- rkc_theory = false ; } in
263+ rkc_lemmas = false ; rkc_types = false ; rkc_ops = false ;
264+ rkc_preds = false ; rkc_exns = false ; rkc_module = false ;
265+ rkc_modtype = false ; rkc_theory = false ; } in
264266
265267 `Selected (List. fold_left update init k)
266268
@@ -275,6 +277,7 @@ let rename ((rk, (rex, itempl)) : renaming) (k, x) =
275277 | `Selected { rkc_lemmas = true } , `Lemma -> true
276278 | `Selected { rkc_ops = true } , `Op -> true
277279 | `Selected { rkc_preds = true } , `Pred -> true
280+ | `Selected { rkc_exns = true } , `Exn -> true
278281 | `Selected { rkc_types = true } , `Type -> true
279282 | `Selected { rkc_module = true } , `Module -> true
280283 | `Selected { rkc_modtype = true } , `ModType -> true
0 commit comments