@@ -996,7 +996,7 @@ let make_polyflags poly cumul =
996996 PolyFlags. make ~univ_poly: poly ~cumulative: cumul ~collapse_sort_variables: true
997997[%% endif]
998998
999- let declare_definition _ using ~cinfo ~info ~opaque ~body sigma =
999+ let declare_definition using ~cinfo ~info ~opaque ~body sigma =
10001000 let using = Option. map Proof_using. using_from_string using in
10011001 let (kn, uctx) = Declare. declare_definition_full ~cinfo ~info ~opaque ~body ?using sigma in
10021002 kn, uctx
@@ -2270,12 +2270,7 @@ Supported attributes:
22702270 else Locality. (Global ImportDefaultBehavior) in
22712271 let cinfo = cinfo_make state types options .using ~name :(Id. of_string id ) ~typ :types ~impargs :[] () in
22722272
2273- (* This is a hack, drop after 8.21 *)
2274- let uctx = ref None in
2275- let hook = Declare.Hook. make (fun { Declare.Hook.S. uctx = x } -> uctx := Some (UState. context_set x )) in
2276- (* End hack *)
2277-
2278- let info = Declare.Info. make ~scope ~kind ~poly :(make_polyflags poly cumul ) ~udecl ~hook () in
2273+ let info = Declare.Info. make ~scope ~kind ~poly :(make_polyflags poly cumul ) ~udecl () in
22792274
22802275 let used =
22812276 Univ.Level.Set. union
@@ -2284,7 +2279,7 @@ Supported attributes:
22842279 let used = Univ.Level.Set. union used (universes_of_udecl state udecl ) in
22852280 let sigma = restricted_sigma_of used state in
22862281
2287- let gr , uctx = declare_definition uctx options .using ~cinfo ~info ~opaque ~body sigma in
2282+ let gr , uctx = declare_definition options .using ~cinfo ~info ~opaque ~body sigma in
22882283 let () =
22892284 let lid = CAst. make ~loc :(to_coq_loc @@ State. get Rocq_elpi_builtins_synterp. invocation_site_loc state ) (Id. of_string id ) in
22902285 match scope with
0 commit comments