Skip to content

Commit

Permalink
Adapt to coq/coq#19530
Browse files Browse the repository at this point in the history
  • Loading branch information
proux01 committed Dec 2, 2024
1 parent 0833256 commit ac1fc79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coqutil/Tactics/reference_to_string.v
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ Ltac2 reference_of_constr c :=
Ltac2 constr_string_basename_of_reference r :=
constr_string_of_string (Ident.to_string (List.last (Env.path r))).
Ltac2 constr_string_qualname_of_reference r :=
match Ident.of_string "Stdlib" with
match Ident.of_string "Corelib" with
| None => constr_string_of_string ""
| Some ident_Stdlib =>
constr_string_of_string (String.join "." (List.map (fun x => if Ident.equal x ident_Stdlib then "Coq" else Ident.to_string x) (Env.path r)))
| Some ident_Corelib =>
constr_string_of_string (String.join "." (List.map (fun x => if Ident.equal x ident_Corelib then "Coq" else Ident.to_string x) (Env.path r)))
end.
(* replace above hack by definition below when requiring Coq >= 8.21 *)
(* replace above hack by definition below when requiring Rocq >= 9.0 *)
(* constr_string_of_string (String.join "." (List.map Ident.to_string (Env.path r))). *)
Ltac2 constr_string_basename_of_constr_reference c :=
constr_string_basename_of_reference (reference_of_constr c).
Expand Down

0 comments on commit ac1fc79

Please sign in to comment.