You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/deprecations.stderr
+28-22Lines changed: 28 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,12 @@ error: use of deprecated struct `pyo3::PyCell`: `PyCell` was merged into `Bound`
16
16
23 | fn method_gil_ref(_slf: &PyCell<Self>) {}
17
17
| ^^^^^^
18
18
19
+
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
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
error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`: use `&Bound<'_, T>` instead for this function argument
74
-
--> tests/ui/deprecations.rs:108:29
80
+
--> tests/ui/deprecations.rs:116:29
75
81
|
76
-
108 | fn pyfunction_gil_ref(_any: &PyAny) {}
82
+
116 | fn pyfunction_gil_ref(_any: &PyAny) {}
77
83
| ^
78
84
79
85
error: use of deprecated method `pyo3::deprecations::OptionGilRefs::<std::option::Option<T>>::function_arg`: use `Option<&Bound<'_, T>>` instead for this function argument
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
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
92
-
--> tests/ui/deprecations.rs:128:27
98
+
--> tests/ui/deprecations.rs:136:27
93
99
|
94
-
128 | #[pyo3(from_py_with = "PyAny::len")] usize,
100
+
136 | #[pyo3(from_py_with = "PyAny::len")] usize,
95
101
| ^^^^^^^^^^^^
96
102
97
103
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
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
104
-
--> tests/ui/deprecations.rs:141:27
110
+
--> tests/ui/deprecations.rs:149:27
105
111
|
106
-
141 | #[pyo3(from_py_with = "extract_gil_ref")]
112
+
149 | #[pyo3(from_py_with = "extract_gil_ref")]
107
113
| ^^^^^^^^^^^^^^^^^
108
114
109
115
error: use of deprecated method `pyo3::deprecations::GilRefs::<pyo3::Python<'_>>::is_python`: use `wrap_pyfunction_bound!` instead
110
-
--> tests/ui/deprecations.rs:154:13
116
+
--> tests/ui/deprecations.rs:162:13
111
117
|
112
-
154 | let _ = wrap_pyfunction!(double, py);
118
+
162 | let _ = wrap_pyfunction!(double, py);
113
119
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
120
|
115
121
= note: this error originates in the macro `wrap_pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments