Fix an abi3 ui test for the latest Rustc
This commit is contained in:
parent
4862f569ea
commit
869a5e2f20
|
@ -11,9 +11,6 @@ fn test_compile_errors() {
|
|||
t.compile_fail("tests/ui/reject_generics.rs");
|
||||
t.compile_fail("tests/ui/wrong_aspyref_lifetimes.rs");
|
||||
|
||||
#[cfg(Py_LIMITED_API)]
|
||||
t.compile_fail("tests/ui/abi3_nativetype_inheritance.rs");
|
||||
|
||||
tests_rust_1_43(&t);
|
||||
tests_rust_1_46(&t);
|
||||
|
||||
|
@ -29,6 +26,8 @@ fn test_compile_errors() {
|
|||
t.compile_fail("tests/ui/invalid_pymethod_receiver.rs");
|
||||
t.compile_fail("tests/ui/invalid_result_conversion.rs");
|
||||
t.compile_fail("tests/ui/missing_clone.rs");
|
||||
#[cfg(Py_LIMITED_API)]
|
||||
t.compile_fail("tests/ui/abi3_nativetype_inheritance.rs");
|
||||
}
|
||||
#[rustversion::before(1.46)]
|
||||
fn tests_rust_1_46(_t: &trybuild::TestCases) {}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
//! With abi3, we cannot inherite native types.
|
||||
use pyo3::prelude::*;
|
||||
use pyo3::types::PyDict;
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
error[E0277]: the trait bound `pyo3::ffi::dictobject::PyDictObject: pyo3::type_object::PySizedLayout<pyo3::types::dict::PyDict>` is not satisfied
|
||||
--> $DIR/abi3_nativetype_inheritance.rs:4:1
|
||||
error[E0277]: the trait bound `pyo3::ffi::PyDictObject: pyo3::type_object::PySizedLayout<pyo3::types::PyDict>` is not satisfied
|
||||
--> $DIR/abi3_nativetype_inheritance.rs:5:1
|
||||
|
|
||||
4 | #[pyclass(extends=PyDict)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `pyo3::type_object::PySizedLayout<pyo3::types::dict::PyDict>` is not implemented for `pyo3::ffi::dictobject::PyDictObject`
|
||||
5 | #[pyclass(extends=PyDict)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `pyo3::type_object::PySizedLayout<pyo3::types::PyDict>` is not implemented for `pyo3::ffi::PyDictObject`
|
||||
|
|
||||
::: $WORKSPACE/src/type_object.rs:96:22
|
||||
|
|
||||
96 | type BaseLayout: PySizedLayout<Self::BaseType>;
|
||||
| ----------------------------- required by this bound in `pyo3::type_object::PyTypeInfo`
|
||||
| ----------------------------- required by this bound in `pyo3::PyTypeInfo`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `pyo3::type_object::PySizedLayout<pyo3::types::dict::PyDict>` for `pyo3::pycell::PyCellBase<pyo3::types::dict::PyDict>`
|
||||
= note: required because of the requirements on the impl of `pyo3::type_object::PySizedLayout<pyo3::types::PyDict>` for `pyo3::pycell::PyCellBase<pyo3::types::PyDict>`
|
||||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Reference in New Issue