aboutsummaryrefslogtreecommitdiff
path: root/vernac/comCoercion.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-06-29 10:20:32 +0200
committerGaëtan Gilbert2020-06-29 10:20:32 +0200
commit61aeca9ca2a7c46b143b90583dfb84b037eccc5b (patch)
tree936cab27bacc3bb779aff810be7b79425544f10d /vernac/comCoercion.ml
parent6e5fee168d874b7b6fe7d5c8f4384661bf328d79 (diff)
parentc62aa0e9d0c33a70822e66a422d4c5926a8c8df7 (diff)
Merge PR #12372: [declare] Refactor constant information into a record.
Reviewed-by: SkySkimmer
Diffstat (limited to 'vernac/comCoercion.ml')
-rw-r--r--vernac/comCoercion.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/vernac/comCoercion.ml b/vernac/comCoercion.ml
index 3cc5dd65af..15d8ebc4b5 100644
--- a/vernac/comCoercion.ml
+++ b/vernac/comCoercion.ml
@@ -354,7 +354,7 @@ let try_add_new_coercion_with_source ref ~local ~poly ~source =
try_add_new_coercion_core ref ~local poly (Some source) None false
let add_coercion_hook poly { Declare.Hook.S.scope; dref; _ } =
- let open Declare in
+ let open Locality in
let local = match scope with
| Discharge -> assert false (* Local Coercion in section behaves like Local Definition *)
| Global ImportNeedQualified -> true
@@ -367,7 +367,7 @@ let add_coercion_hook poly { Declare.Hook.S.scope; dref; _ } =
let add_coercion_hook ~poly = Declare.Hook.make (add_coercion_hook poly)
let add_subclass_hook ~poly { Declare.Hook.S.scope; dref; _ } =
- let open Declare in
+ let open Locality in
let stre = match scope with
| Discharge -> assert false (* Local Subclass in section behaves like Local Definition *)
| Global ImportNeedQualified -> true