Skip to content

Commit

Permalink
Adapt to coq/coq#18528 (profile_ltac moved to engine and renamed prof…
Browse files Browse the repository at this point in the history
…ile_tactic)
  • Loading branch information
SkySkimmer committed Jan 23, 2024
1 parent c520d5e commit 2cf89c3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions serapi/serapi_protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ type coq_object =
| CoqGlobRef of Names.GlobRef.t
| CoqGlobRefExt of Globnames.extended_global_reference
| CoqImplicit of Impargs.implicits_list
| CoqProfData of Profile_ltac.treenode
| CoqProfData of Profile_tactic.treenode
| CoqNotation of Constrexpr.notation
| CoqUnparsing of Ppextend.notation_printing_rules * Notation_gram.notation_grammar
| CoqGoal of Constr.t Serapi_goals.reified_goal Serapi_goals.ser_goals
Expand Down Expand Up @@ -600,7 +600,7 @@ let obj_query ~doc ~pstate ~env (opt : query_opt) (cmd : query_cmd) : coq_object
| Tactics prefix -> List.map (fun (i,t) -> CoqTactic(i,t)) @@ QueryUtil.query_tactics prefix
| Locate id -> List.map (fun qid -> CoqQualId qid) @@ QueryUtil.locate id
| Implicits id -> List.map (fun ii -> CoqImplicit ii ) @@ QueryUtil.implicits id
| ProfileData -> [CoqProfData (Profile_ltac.get_local_profiling_results ())]
| ProfileData -> [CoqProfData (Profile_tactic.get_local_profiling_results ())]
| Proof -> QueryUtil.get_proof ~pstate
| Unparsing ntn -> (* Unfortunately this will produce an anomaly if the notation is not found...
* To keep protocol promises we need to special wrap it.
Expand Down
2 changes: 1 addition & 1 deletion serapi/serapi_protocol.mli
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ type coq_object =
(** "Extended Global Reference", as they can contain syntactic definitions too *)
| CoqImplicit of Impargs.implicits_list
(** Implicit status for a constant *)
| CoqProfData of Profile_ltac.treenode
| CoqProfData of Profile_tactic.treenode
(** Ltac Profiler data *)
| CoqNotation of Constrexpr.notation
(** Representation of a notation (usually a string) *)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let sexp_of_cstring_map f m =
sexp_of_list s_f l

type treenode =
[%import: Ltac_plugin.Profile_ltac.treenode
[%import: Profile_tactic.treenode
[@with CString.Map.t := cstring_map;
CString.Map.key := string
]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

open Sexplib

open Ltac_plugin

type treenode = Profile_ltac.treenode
type treenode = Profile_tactic.treenode

val treenode_of_sexp : Sexp.t -> treenode
val sexp_of_treenode : treenode -> Sexp.t
2 changes: 1 addition & 1 deletion sertop/sertop_ser.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ module Notation_gram = Ser_notation_gram
module Genarg = Ser_genarg
module Loadpath = Ser_loadpath
module Printer = Ser_printer
module Profile_tactic = Ser_profile_tactic

(* Alias fails due to the [@@default in protocol] *)
(* module Stm = Ser_stm *)
module Ser_stm = Ser_stm

module Ltac_plugin = struct
module Tacenv = Serlib_ltac.Ser_tacenv
module Profile_ltac = Serlib_ltac.Ser_profile_ltac
module Tacexpr = Serlib_ltac.Ser_tacexpr
end

Expand Down

0 comments on commit 2cf89c3

Please sign in to comment.