@@ -586,7 +586,7 @@ fn make_method_definition(
586
586
587
587
let is_virtual = false ;
588
588
make_function_definition (
589
- & method_name_str,
589
+ method_name_str,
590
590
special_cases:: is_private ( class_name, & method. name ) ,
591
591
receiver,
592
592
& method. arguments ,
@@ -638,7 +638,7 @@ fn make_builtin_method_definition(
638
638
639
639
let is_virtual = false ;
640
640
make_function_definition (
641
- & method_name_str,
641
+ method_name_str,
642
642
special_cases:: is_private ( class_name, & method. name ) ,
643
643
receiver,
644
644
& method. arguments ,
@@ -675,7 +675,7 @@ pub(crate) fn make_utility_function_definition(
675
675
676
676
let is_virtual = false ;
677
677
make_function_definition (
678
- & function_name_str,
678
+ function_name_str,
679
679
false ,
680
680
TokenStream :: new ( ) ,
681
681
& function. arguments ,
@@ -1009,14 +1009,10 @@ fn make_virtual_method(class_method: &ClassMethod, ctx: &mut Context) -> TokenSt
1009
1009
// Virtual methods are never static.
1010
1010
assert ! ( !class_method. is_static) ;
1011
1011
1012
- let ( receiver, _) = make_receiver (
1013
- class_method. is_static ,
1014
- class_method. is_const ,
1015
- quote ! { self . object_ptr } ,
1016
- ) ;
1012
+ let receiver = make_receiver_self_param ( false , class_method. is_const ) ;
1017
1013
1018
1014
// make_return requests these token streams, but they won't be used for
1019
- // virtual method . We can provide empty streams.
1015
+ // virtual methods . We can provide empty streams.
1020
1016
let varcall_invocation = TokenStream :: new ( ) ;
1021
1017
let ptrcall_invocation = TokenStream :: new ( ) ;
1022
1018
let init_code = TokenStream :: new ( ) ;
@@ -1025,7 +1021,7 @@ fn make_virtual_method(class_method: &ClassMethod, ctx: &mut Context) -> TokenSt
1025
1021
let is_virtual = true ;
1026
1022
let is_private = false ;
1027
1023
make_function_definition (
1028
- & method_name,
1024
+ method_name,
1029
1025
is_private,
1030
1026
receiver,
1031
1027
& class_method. arguments ,
0 commit comments