File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3066,11 +3066,11 @@ impl Method {
30663066
30673067 method_names. insert ( name. clone ( ) ) ;
30683068
3069- let mut function_name = function_item. canonical_name ( ctx) ;
3069+ let mut canonical_name = function_item. canonical_name ( ctx) ;
30703070 if times_seen > 0 {
3071- write ! ( & mut function_name , "{times_seen}" ) . unwrap ( ) ;
3071+ write ! ( & mut canonical_name , "{times_seen}" ) . unwrap ( ) ;
30723072 }
3073- let function_name = ctx. rust_ident ( function_name ) ;
3073+ let function_name = ctx. rust_ident ( & canonical_name ) ;
30743074 let mut args = utils:: fnsig_arguments ( ctx, signature) ;
30753075 let mut ret = utils:: fnsig_return_ty ( ctx, signature) ;
30763076
@@ -3152,7 +3152,7 @@ impl Method {
31523152
31533153 let custom_attributes = ctx. options ( ) . all_callbacks ( |cb| {
31543154 cb. add_attributes ( & AttributeInfo {
3155- name : & name ,
3155+ name : & canonical_name ,
31563156 kind : AttributeItemKind :: Function ,
31573157 method_kind : Some ( self . kind ( ) ) ,
31583158 } )
You can’t perform that action at this time.
0 commit comments