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-05-04 07:39:40 +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:42:44
|
42 | fn __eq__(&self, #[pyo3(from_py_with = "extract_gil_ref")] _other: i32) -> bool {
| ^^^^^^^^^^^^^^^^^
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-27 15:41:04 +00:00
--> tests/ui/deprecations.rs:37:39
2024-03-20 22:35:08 +00:00
|
2024-03-27 15:41:04 +00:00
37 | fn set_bar_gil_ref(&self, _value: &PyAny) {}
| ^
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
2024-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:61:44
2024-03-27 15:41:04 +00:00
|
2024-05-09 07:58:44 +00:00
61 | 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-05-04 07:39:40 +00:00
--> tests/ui/deprecations.rs:71:19
2024-03-08 00:28:11 +00:00
|
2024-05-09 07:58:44 +00:00
71 | 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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:76:57
2024-03-08 00:28:11 +00:00
|
2024-05-09 07:58:44 +00:00
76 | fn module_gil_ref_with_explicit_py_arg(_py: Python<'_>, _m: &PyModule) -> PyResult<()> {
| ^^
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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:108:27
2024-03-27 15:41:04 +00:00
|
2024-05-09 07:58:44 +00:00
108 | #[pyo3(from_py_with = "extract_gil_ref")] _gil_ref: i32,
2024-03-27 15:41:04 +00:00
| ^^^^^^^^^^^^^^^^^
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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:114:29
2024-03-26 18:53:11 +00:00
|
2024-05-09 07:58:44 +00:00
114 | fn pyfunction_gil_ref(_any: &PyAny) {}
2024-03-26 18:53:11 +00:00
| ^
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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:117:36
2024-03-26 18:53:11 +00:00
|
2024-05-09 07:58:44 +00:00
117 | fn pyfunction_option_gil_ref(_any: Option<&PyAny>) {}
2024-03-26 18:53:11 +00:00
| ^^^^^^
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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:124:27
2024-03-20 22:35:08 +00:00
|
2024-05-09 07:58:44 +00:00
124 | #[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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:134:27
2024-03-20 09:27:38 +00:00
|
2024-05-09 07:58:44 +00:00
134 | #[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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:140:31
2024-03-20 09:27:38 +00:00
|
2024-05-09 07:58:44 +00:00
140 | 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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:147:27
2024-03-20 09:27:38 +00:00
|
2024-05-09 07:58:44 +00:00
147 | #[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-05-09 07:58:44 +00:00
--> tests/ui/deprecations.rs:160:13
2024-03-20 09:27:38 +00:00
|
2024-05-09 07:58:44 +00:00
160 | 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)