Skip to content

Commit

Permalink
Fix the extracted name of some clone methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho committed Dec 2, 2024
1 parent 19509e6 commit a2ab814
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/extract/ExtractBuiltin.ml
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,16 @@ let mk_builtin_funs () : (pattern * bool list option * builtin_fun_info) list =
(* Clone<bool> *)
@ [
mk_fun "core::clone::impls::{core::clone::Clone<bool>}::clone"
~extract_name:(Some "core.clone.CloneBool.clone") ~can_fail:false ();
~extract_name:(Some "core.clone.impls.CloneBool.clone") ~can_fail:false
();
]
(* Clone<INT> *)
@ mk_scalar_fun
(fun ty -> "core::clone::impls::{core::clone::Clone<" ^ ty ^ ">}::clone")
(fun ty ->
"core.clone.Clone" ^ StringUtils.capitalize_first_letter ty ^ ".clone")
"core.clone.impls.Clone"
^ StringUtils.capitalize_first_letter ty
^ ".clone")
~can_fail:false ()
(* Lean-only definitions *)
@ mk_lean_only
Expand Down

0 comments on commit a2ab814

Please sign in to comment.