@@ -370,13 +370,14 @@ pub mod python {
370
370
:: inventory:: core:: option:: Option :: None ,
371
371
) ,
372
372
} ;
373
+ #[ link_section = ".text.startup" ]
373
374
unsafe extern "C" fn __ctor ( ) {
374
375
unsafe {
375
376
:: inventory:: ErasedNode :: submit ( __INVENTORY. value , & __INVENTORY)
376
377
}
377
378
}
378
379
#[ used]
379
- #[ link_section = "__DATA,__mod_init_func " ]
380
+ #[ link_section = ".init_array " ]
380
381
static __CTOR: unsafe extern "C" fn ( ) = __ctor;
381
382
} ;
382
383
#[ doc( hidden) ]
@@ -415,20 +416,18 @@ pub mod python {
415
416
Inventory :: new ( _pyo3:: impl_:: pyclass:: PyClassItems {
416
417
methods : & [
417
418
_pyo3:: class:: PyMethodDefType :: Static (
418
- _pyo3:: impl_:: pymethods:: PyMethodDef :: fastcall_cfunction_with_keywords (
419
+ _pyo3:: impl_:: pymethods:: PyMethodDef :: cfunction_with_keywords (
419
420
"from_string\0 " ,
420
- _pyo3:: impl_:: pymethods:: PyCFunctionFastWithKeywords ( {
421
+ _pyo3:: impl_:: pymethods:: PyCFunctionWithKeywords ( {
421
422
unsafe extern "C" fn trampoline (
422
423
_slf : * mut _pyo3:: ffi:: PyObject ,
423
- _args : * const * mut _pyo3:: ffi:: PyObject ,
424
- _nargs : _pyo3:: ffi:: Py_ssize_t ,
425
- _kwnames : * mut _pyo3:: ffi:: PyObject ,
424
+ _args : * mut _pyo3:: ffi:: PyObject ,
425
+ _kwargs : * mut _pyo3:: ffi:: PyObject ,
426
426
) -> * mut _pyo3:: ffi:: PyObject {
427
- _pyo3:: impl_:: trampoline:: fastcall_with_keywords (
427
+ _pyo3:: impl_:: trampoline:: cfunction_with_keywords (
428
428
_slf,
429
429
_args,
430
- _nargs,
431
- _kwnames,
430
+ _kwargs,
432
431
PyTestUnionEnum :: __pymethod_from_string__,
433
432
)
434
433
}
@@ -446,13 +445,14 @@ pub mod python {
446
445
:: inventory:: core:: option:: Option :: None ,
447
446
) ,
448
447
} ;
448
+ #[ link_section = ".text.startup" ]
449
449
unsafe extern "C" fn __ctor ( ) {
450
450
unsafe {
451
451
:: inventory:: ErasedNode :: submit ( __INVENTORY. value , & __INVENTORY)
452
452
}
453
453
}
454
454
#[ used]
455
- #[ link_section = "__DATA,__mod_init_func " ]
455
+ #[ link_section = ".init_array " ]
456
456
static __CTOR: unsafe extern "C" fn ( ) = __ctor;
457
457
} ;
458
458
#[ doc( hidden) ]
@@ -461,9 +461,8 @@ pub mod python {
461
461
unsafe fn __pymethod_from_string__ < ' py > (
462
462
py : _pyo3:: Python < ' py > ,
463
463
_slf : * mut _pyo3:: ffi:: PyObject ,
464
- _args : * const * mut _pyo3:: ffi:: PyObject ,
465
- _nargs : _pyo3:: ffi:: Py_ssize_t ,
466
- _kwnames : * mut _pyo3:: ffi:: PyObject ,
464
+ _args : * mut _pyo3:: ffi:: PyObject ,
465
+ _kwargs : * mut _pyo3:: ffi:: PyObject ,
467
466
) -> _pyo3:: PyResult < * mut _pyo3:: ffi:: PyObject > {
468
467
let function = PyTestUnionEnum :: from_string;
469
468
const DESCRIPTION : _pyo3:: impl_:: extract_argument:: FunctionDescription = _pyo3:: impl_:: extract_argument:: FunctionDescription {
@@ -478,10 +477,10 @@ pub mod python {
478
477
} ;
479
478
let mut output = [ :: std:: option:: Option :: None ; 1usize ] ;
480
479
let ( _args, _kwargs) = DESCRIPTION
481
- . extract_arguments_fastcall :: <
480
+ . extract_arguments_tuple_dict :: <
482
481
_pyo3:: impl_:: extract_argument:: NoVarargs ,
483
482
_pyo3:: impl_:: extract_argument:: NoVarkeywords ,
484
- > ( py, _args, _nargs , _kwnames , & mut output) ?;
483
+ > ( py, _args, _kwargs , & mut output) ?;
485
484
_pyo3:: impl_:: wrap:: OkWrap :: wrap (
486
485
function (
487
486
py,
@@ -745,13 +744,14 @@ pub mod python {
745
744
:: inventory:: core:: option:: Option :: None ,
746
745
) ,
747
746
} ;
747
+ #[ link_section = ".text.startup" ]
748
748
unsafe extern "C" fn __ctor ( ) {
749
749
unsafe {
750
750
:: inventory:: ErasedNode :: submit ( __INVENTORY. value , & __INVENTORY)
751
751
}
752
752
}
753
753
#[ used]
754
- #[ link_section = "__DATA,__mod_init_func " ]
754
+ #[ link_section = ".init_array " ]
755
755
static __CTOR: unsafe extern "C" fn ( ) = __ctor;
756
756
} ;
757
757
#[ doc( hidden) ]
@@ -2175,13 +2175,14 @@ pub mod python {
2175
2175
:: inventory:: core:: option:: Option :: None ,
2176
2176
) ,
2177
2177
} ;
2178
+ #[ link_section = ".text.startup" ]
2178
2179
unsafe extern "C" fn __ctor ( ) {
2179
2180
unsafe {
2180
2181
:: inventory:: ErasedNode :: submit ( __INVENTORY. value , & __INVENTORY)
2181
2182
}
2182
2183
}
2183
2184
#[ used]
2184
- #[ link_section = "__DATA,__mod_init_func " ]
2185
+ #[ link_section = ".init_array " ]
2185
2186
static __CTOR: unsafe extern "C" fn ( ) = __ctor;
2186
2187
} ;
2187
2188
#[ doc( hidden) ]
@@ -2338,13 +2339,14 @@ pub mod python {
2338
2339
:: inventory:: core:: option:: Option :: None ,
2339
2340
) ,
2340
2341
} ;
2342
+ #[ link_section = ".text.startup" ]
2341
2343
unsafe extern "C" fn __ctor ( ) {
2342
2344
unsafe {
2343
2345
:: inventory:: ErasedNode :: submit ( __INVENTORY. value , & __INVENTORY)
2344
2346
}
2345
2347
}
2346
2348
#[ used]
2347
- #[ link_section = "__DATA,__mod_init_func " ]
2349
+ #[ link_section = ".init_array " ]
2348
2350
static __CTOR: unsafe extern "C" fn ( ) = __ctor;
2349
2351
} ;
2350
2352
#[ doc( hidden) ]
0 commit comments