Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to coq/coq#18528 (profile_ltac moved to engine and renamed profile_tactic) #385

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading