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
+32-40Lines changed: 32 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -10,42 +10,34 @@ note: the lint level is defined here
10
10
1 | #![deny(deprecated)]
11
11
| ^^^^^^^^^^
12
12
13
-
error: use of deprecated constant `MyClass::__pymethod_set_set_option__::SIGNATURE`: this function has implicit defaults for the trailing `Option<T>` arguments
14
-
= note: these implicit defaults are being phased out
15
-
= help: add `#[pyo3(signature = (_value=None))]` to this function to silence this warning and keep the current behavior
16
-
--> tests/ui/deprecations.rs:43:8
17
-
|
18
-
43 | fn set_option(&self, _value: Option<i32>) {}
19
-
| ^^^^^^^^^^
20
-
21
13
error: use of deprecated constant `__pyfunction_pyfunction_option_2::SIGNATURE`: this function has implicit defaults for the trailing `Option<T>` arguments
22
14
= note: these implicit defaults are being phased out
23
15
= help: add `#[pyo3(signature = (_i, _any=None))]` to this function to silence this warning and keep the current behavior
error: use of deprecated constant `__pyfunction_pyfunction_option_3::SIGNATURE`: this function has implicit defaults for the trailing `Option<T>` arguments
30
22
= note: these implicit defaults are being phased out
31
23
= help: add `#[pyo3(signature = (_i, _any=None, _foo=None))]` to this function to silence this warning and keep the current behavior
error: use of deprecated constant `__pyfunction_pyfunction_option_4::SIGNATURE`: this function has implicit defaults for the trailing `Option<T>` arguments
38
30
= note: these implicit defaults are being phased out
39
31
= help: add `#[pyo3(signature = (_i, _any=None, _foo=None))]` to this function to silence this warning and keep the current behavior
40
-
--> tests/ui/deprecations.rs:138:4
32
+
--> tests/ui/deprecations.rs:135:4
41
33
|
42
-
138 | fn pyfunction_option_4(
34
+
135 | fn pyfunction_option_4(
43
35
| ^^^^^^^^^^^^^^^^^^^
44
36
45
37
error: use of deprecated constant `SimpleEnumWithoutEq::__pyo3__generated____richcmp__::DEPRECATION`: Implicit equality for simple enums is deprecated. Use `#[pyclass(eq, eq_int)` to keep the current behavior.
46
-
--> tests/ui/deprecations.rs:200:1
38
+
--> tests/ui/deprecations.rs:197:1
47
39
|
48
-
200 | #[pyclass]
40
+
197 | #[pyclass]
49
41
| ^^^^^^^^^^
50
42
|
51
43
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -57,9 +49,9 @@ error: use of deprecated struct `pyo3::PyCell`: `PyCell` was merged into `Bound`
57
49
| ^^^^^^
58
50
59
51
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
120
-
--> tests/ui/deprecations.rs:121:29
112
+
--> tests/ui/deprecations.rs:118:29
121
113
|
122
-
121 | fn pyfunction_gil_ref(_any: &PyAny) {}
114
+
118 | fn pyfunction_gil_ref(_any: &PyAny) {}
123
115
| ^
124
116
125
117
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
138
-
--> tests/ui/deprecations.rs:160:27
130
+
--> tests/ui/deprecations.rs:157:27
139
131
|
140
-
160 | #[pyo3(from_py_with = "PyAny::len")] usize,
132
+
157 | #[pyo3(from_py_with = "PyAny::len")] usize,
141
133
| ^^^^^^^^^^^^
142
134
143
135
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
150
-
--> tests/ui/deprecations.rs:173:27
142
+
--> tests/ui/deprecations.rs:170:27
151
143
|
152
-
173 | #[pyo3(from_py_with = "extract_gil_ref")]
144
+
170 | #[pyo3(from_py_with = "extract_gil_ref")]
153
145
| ^^^^^^^^^^^^^^^^^
154
146
155
147
error: use of deprecated method `pyo3::deprecations::GilRefs::<pyo3::Python<'_>>::is_python`: use `wrap_pyfunction_bound!` instead
156
-
--> tests/ui/deprecations.rs:186:13
148
+
--> tests/ui/deprecations.rs:183:13
157
149
|
158
-
186 | let _ = wrap_pyfunction!(double, py);
150
+
183 | let _ = wrap_pyfunction!(double, py);
159
151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
160
152
|
161
153
= note: this error originates in the macro `wrap_pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments