File tree Expand file tree Collapse file tree 1 file changed +3
-40
lines changed Expand file tree Collapse file tree 1 file changed +3
-40
lines changed Original file line number Diff line number Diff line change @@ -1178,7 +1178,6 @@ macro_rules! __convert_result {
1178
1178
#[ doc( hidden) ]
1179
1179
#[ macro_export]
1180
1180
macro_rules! __declare_class_register_out {
1181
- // #[method(...)]
1182
1181
{
1183
1182
( $builder: ident)
1184
1183
( $( $qualifiers: tt) * )
@@ -1192,51 +1191,15 @@ macro_rules! __declare_class_register_out {
1192
1191
( $( $__params_prefix: tt) * )
1193
1192
( $( $params_rest: tt) * )
1194
1193
1195
- ( #[ method( $( $sel: tt) * ) ] )
1196
- ( )
1197
- ( $( $m_optional: tt) * )
1198
- ( $( $m_checked: tt) * )
1199
- } => {
1200
- $crate:: __extract_and_apply_cfg_attributes! {
1201
- ( $( $m_checked) * )
1202
-
1203
- $crate:: __declare_class_invalid_selectors!( #[ method( $( $sel) * ) ] ) ;
1204
- $crate:: __extern_methods_no_optional!( $( $m_optional) * ) ;
1205
-
1206
- $builder. $builder_method(
1207
- $crate:: sel!( $( $sel) * ) ,
1208
- Self :: $name as $crate:: __fn_ptr! {
1209
- ( $( $qualifiers) * )
1210
- ( _, _, )
1211
- $( $params_rest) *
1212
- } ,
1213
- ) ;
1214
- }
1215
- } ;
1216
-
1217
- // #[method_id(...)]
1218
- {
1219
- ( $builder: ident)
1220
- ( $( $qualifiers: tt) * )
1221
- ( $name: ident)
1222
- ( $( $__ret: ty) ?)
1223
- ( $__body: block)
1224
-
1225
- ( $builder_method: ident)
1226
- ( $__receiver: expr)
1227
- ( $__receiver_ty: ty)
1228
- ( $( $__params_prefix: tt) * )
1229
- ( $( $params_rest: tt) * )
1230
-
1231
- ( #[ method_id( $( $sel: tt) * ) ] )
1232
- ( ) // Retain semantics unsupported in declare_class!
1194
+ ( #[ $method_or_method_id: ident( $( $sel: tt) * ) ] )
1195
+ ( $( $retain_semantics: tt) * )
1233
1196
( $( $m_optional: tt) * )
1234
1197
( $( $m_checked: tt) * )
1235
1198
} => {
1236
1199
$crate:: __extract_and_apply_cfg_attributes! {
1237
1200
( $( $m_checked) * )
1238
1201
1239
- $crate:: __declare_class_invalid_selectors!( #[ method_id ( $( $sel) * ) ] ) ;
1202
+ $crate:: __declare_class_invalid_selectors!( #[ $method_or_method_id ( $( $sel) * ) ] ) ;
1240
1203
$crate:: __extern_methods_no_optional!( $( $m_optional) * ) ;
1241
1204
1242
1205
$builder. $builder_method(
You can’t perform that action at this time.
0 commit comments