File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -674,7 +674,7 @@ pub fn derive_ocaml_custom(item: TokenStream) -> TokenStream {
674
674
if new_type {
675
675
let ty_name = rename. unwrap_or( #ocaml_name) ;
676
676
let ty_id = <Self as :: ocaml_gen:: OCamlDesc >:: unique_id( ) ;
677
- env. new_custom_type ( ty_id, ty_name) ;
677
+ env. new_type ( ty_id, ty_name) ;
678
678
}
679
679
680
680
let name = <Self as :: ocaml_gen:: OCamlDesc >:: ocaml_desc( env, & [ ] ) ;
Original file line number Diff line number Diff line change @@ -44,12 +44,6 @@ impl Env {
44
44
} ;
45
45
}
46
46
47
- /// Declares a new custom type. Unlike [new_type] this can be called several times with the same type.
48
- pub fn new_custom_type ( & mut self , ty : u128 , name : & ' static str ) {
49
- self . locations
50
- . insert ( ty, ( self . current_module . clone ( ) , name) ) ;
51
- }
52
-
53
47
/// retrieves a type that was declared previously
54
48
pub fn get_type ( & self , ty : u128 , name : & str ) -> String {
55
49
let ( type_path, type_name) = self . locations . get ( & ty) . expect ( & format ! (
You can’t perform that action at this time.
0 commit comments