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
+18-12
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ note: the lint level is defined here
10
10
1 | #![deny(deprecated)]
11
11
| ^^^^^^^^^^
12
12
13
+
error: use of deprecated function `pyo3::deprecations::deprecate_implicit_option`: Implicit default for trailing optional arguments is phased out. Add an explicit `#[pyo3(signature = (...))]` attribute a to silence this warning. In a future pyo3 version `Option<..>` arguments will be treated the same as any other argument.
error: use of deprecated struct `pyo3::PyCell`: `PyCell` was merged into `Bound`, use that instead; see the migration guide for more info
14
20
--> tests/ui/deprecations.rs:23:30
15
21
|
@@ -77,39 +83,39 @@ error: use of deprecated method `pyo3::deprecations::GilRefs::<T>::function_arg`
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