Skip to content

Commit 20f5aff

Browse files
alexclaude
andcommitted
Re-bless abi3_inheritance UI test for removed deprecation probe
This test only runs with `Py_LIMITED_API` targeting Python < 3.12 (the abi3-py39 forward-compatibility CI run), so it was missed in the previous bless. The expected output still contained the `HasAutomaticFromPyObject` deprecation warning, whose probe was removed in the codegen slimming. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent e12b9e2 commit 20f5aff

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

tests/ui/abi3_inheritance.stderr

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,6 @@ note: required by a bound in `pyo3::impl_::pyclass::PyClassImpl::BaseType`
3434
| type BaseType: PyTypeInfo + PyClassBaseType;
3535
| ^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::BaseType`
3636

37-
warning: use of deprecated associated constant `pyo3::impl_::deprecated::HasAutomaticFromPyObject::<true>::MSG`: The `FromPyObject` implementation for `#[pyclass]` types which implement `Clone` is changing to an opt-in option. Use `#[pyclass(from_py_object)]` to opt-in to the `FromPyObject` derive now, or `#[pyclass(skip_from_py_object)]` to skip the `FromPyObject` implementation.
38-
--> tests/ui/abi3_inheritance.rs:4:1
39-
|
40-
4 | #[pyclass(extends=PyException)]
41-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42-
|
43-
= note: `#[warn(deprecated)]` on by default
44-
= note: this warning originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
45-
46-
error: aborting due to 2 previous errors; 1 warning emitted
37+
error: aborting due to 2 previous errors
4738

4839
For more information about this error, try `rustc --explain E0277`.

0 commit comments

Comments
 (0)