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-20 22:35:08 +00:00
--> tests/ui/deprecations.rs:28:36
2024-03-09 09:52:12 +00:00
|
2024-03-20 22:35:08 +00:00
28 | fn static_method_gil_ref(_any: &PyAny) {}
| ^
2024-03-26 18:53:11 +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
--> tests/ui/deprecations.rs:31:53
|
31 | fn set_foo_gil_ref(&self, #[pyo3(from_py_with = "extract_gil_ref")] _value: i32) {}
| ^^^^^^^^^^^^^^^^^
2024-03-20 22:35:08 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:47:43
2024-03-20 22:35:08 +00:00
|
2024-03-26 18:53:11 +00:00
47 | 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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:57:19
2024-03-08 00:28:11 +00:00
|
2024-03-26 18:53:11 +00:00
57 | 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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:63:57
2024-03-08 00:28:11 +00:00
|
2024-03-26 18:53:11 +00:00
63 | 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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:96:27
2024-03-19 08:58:41 +00:00
|
2024-03-26 18:53:11 +00:00
96 | #[pyo3(from_py_with = "extract_gil_ref")] _gil_ref: i32,
2024-03-19 08:58:41 +00:00
| ^^^^^^^^^^^^^^^^^
2024-03-20 22:35:08 +00:00
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-03-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:102:29
|
102 | fn pyfunction_gil_ref(_any: &PyAny) {}
| ^
2024-03-20 22:35:08 +00:00
2024-03-21 07:24:40 +00:00
error: use of deprecated method `pyo3::deprecations::OptionGilRefs::<std::option::Option<T>>::function_arg`: use `Option<&Bound<'_, T>>` instead for this function argument
2024-03-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:105:36
|
105 | fn pyfunction_option_gil_ref(_any: Option<&PyAny>) {}
| ^^^^^^
2024-03-21 07:24:40 +00:00
2024-03-20 22:35:08 +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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:112:27
2024-03-20 22:35:08 +00:00
|
2024-03-26 18:53:11 +00:00
112 | #[pyo3(from_py_with = "PyAny::len", item("my_object"))]
2024-03-20 22:35:08 +00:00
| ^^^^^^^^^^^^
2024-03-20 09:27:38 +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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:122:27
2024-03-20 09:27:38 +00:00
|
2024-03-26 18:53:11 +00:00
122 | #[pyo3(from_py_with = "PyAny::len")] usize,
2024-03-20 09:27:38 +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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:128:31
2024-03-20 09:27:38 +00:00
|
2024-03-26 18:53:11 +00:00
128 | Zip(#[pyo3(from_py_with = "extract_gil_ref")] i32),
2024-03-20 09:27:38 +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-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:135:27
2024-03-20 09:27:38 +00:00
|
2024-03-26 18:53:11 +00:00
135 | #[pyo3(from_py_with = "extract_gil_ref")]
2024-03-20 09:27:38 +00:00
| ^^^^^^^^^^^^^^^^^
error: use of deprecated method `pyo3::deprecations::GilRefs::<pyo3::Python<'_>>::is_python`: use `wrap_pyfunction_bound!` instead
2024-03-26 18:53:11 +00:00
--> tests/ui/deprecations.rs:148:13
2024-03-20 09:27:38 +00:00
|
2024-03-26 18:53:11 +00:00
148 | let _ = wrap_pyfunction!(double, py);
2024-03-20 09:27:38 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `wrap_pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)