2024-03-19 21:08:20 +00:00
error: use of deprecated constant `pyo3::deprecations::PYMETHODS_NEW_DEPRECATED_FORM`: use `#[new]` instead of `#[__new__]`
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:12:7
2023-10-05 22:59:03 +00:00
|
2024-03-15 10:25:27 +00:00
12 | #[__new__]
2023-10-05 22:59:03 +00:00
| ^^^^^^^
|
note: the lint level is defined here
--> tests/ui/deprecations.rs:1:9
|
1 | #![deny(deprecated)]
| ^^^^^^^^^^
2024-03-08 00:28:11 +00:00
2024-03-09 09:52:12 +00:00
error: use of deprecated struct `pyo3::PyCell`: `PyCell` was merged into `Bound`, use that instead; see the migration guide for more info
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:23:30
2024-03-09 09:52:12 +00:00
|
2024-03-15 10:25:27 +00:00
23 | fn method_gil_ref(_slf: &PyCell<Self>) {}
2024-03-09 09:52:12 +00:00
| ^^^^^^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:18:33
2024-03-09 09:52:12 +00:00
|
2024-03-15 10:25:27 +00:00
18 | fn cls_method_gil_ref(_cls: &PyType) {}
2024-03-09 09:52:12 +00:00
| ^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:23:29
2024-03-09 09:52:12 +00:00
|
2024-03-15 10:25:27 +00:00
23 | fn method_gil_ref(_slf: &PyCell<Self>) {}
2024-03-09 09:52:12 +00:00
| ^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:38:43
2024-03-09 09:52:12 +00:00
|
2024-03-15 10:25:27 +00:00
38 | fn pyfunction_with_module_gil_ref(module: &PyModule) -> PyResult<&str> {
2024-03-09 09:52:12 +00:00
| ^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:48:19
2024-03-08 00:28:11 +00:00
|
2024-03-15 10:25:27 +00:00
48 | fn module_gil_ref(m: &PyModule) -> PyResult<()> {
2024-03-08 00:28:11 +00:00
| ^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-15 10:25:27 +00:00
--> tests/ui/deprecations.rs:54:57
2024-03-08 00:28:11 +00:00
|
2024-03-15 10:25:27 +00:00
54 | fn module_gil_ref_with_explicit_py_arg(_py: Python<'_>, m: &PyModule) -> PyResult<()> {
2024-03-08 00:28:11 +00:00
| ^
2024-03-12 22:57:03 +00:00
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::from_py_with_arg`: use `&Bound<'_, PyAny>` as the argument for this `from_py_with` extractor
2024-03-19 08:58:41 +00:00
--> tests/ui/deprecations.rs:87:27
|
87 | #[pyo3(from_py_with = "extract_gil_ref")] _gil_ref: i32,
| ^^^^^^^^^^^^^^^^^
2024-03-19 21:08:20 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<pyo3::Python<'_>>::is_python`: use `wrap_pyfunction_bound!` instead
2024-03-19 08:58:41 +00:00
--> tests/ui/deprecations.rs:94:13
2024-03-12 22:57:03 +00:00
|
2024-03-19 08:58:41 +00:00
94 | let _ = wrap_pyfunction!(double, py);
2024-03-12 22:57:03 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `wrap_pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)