-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ac213f
commit 8a8c098
Showing
8 changed files
with
55 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
error[E0277]: the trait bound `pyo3::ffi::PyDictObject: pyo3::type_object::PySizedLayout<pyo3::types::PyDict>` is not satisfied | ||
error[E0277]: the trait bound `PyDictObject: PySizedLayout<PyDict>` is not satisfied | ||
--> $DIR/abi3_nativetype_inheritance.rs:5:1 | ||
| | ||
5 | #[pyclass(extends=PyDict)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `pyo3::type_object::PySizedLayout<pyo3::types::PyDict>` is not implemented for `pyo3::ffi::PyDictObject` | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `PySizedLayout<PyDict>` is not implemented for `PyDictObject` | ||
| | ||
::: $WORKSPACE/src/type_object.rs:96:22 | ||
::: $WORKSPACE/src/type_object.rs | ||
| | ||
96 | type BaseLayout: PySizedLayout<Self::BaseType>; | ||
| ----------------------------- required by this bound in `pyo3::PyTypeInfo` | ||
| type BaseLayout: PySizedLayout<Self::BaseType>; | ||
| ----------------------------- required by this bound in `PyTypeInfo` | ||
| | ||
= 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: required because of the requirements on the impl of `PySizedLayout<PyDict>` for `PyCellBase<PyDict>` | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
error[E0277]: the trait bound `i32: std::convert::From<&pyo3::PyCell<MyClass>>` is not satisfied | ||
error[E0277]: the trait bound `i32: From<&PyCell<MyClass>>` is not satisfied | ||
--> $DIR/invalid_pymethod_receiver.rs:8:43 | ||
| | ||
8 | fn method_with_invalid_self_type(slf: i32, py: Python, index: u32) {} | ||
| ^^^ the trait `std::convert::From<&pyo3::PyCell<MyClass>>` is not implemented for `i32` | ||
| ^^^ the trait `From<&PyCell<MyClass>>` is not implemented for `i32` | ||
| | ||
= help: the following implementations were found: | ||
<i32 as std::convert::From<bool>> | ||
<i32 as std::convert::From<i16>> | ||
<i32 as std::convert::From<i8>> | ||
<i32 as std::convert::From<std::num::NonZeroI32>> | ||
<i32 as From<NonZeroI32>> | ||
<i32 as From<bool>> | ||
<i32 as From<i16>> | ||
<i32 as From<i8>> | ||
and 2 others | ||
= note: required because of the requirements on the impl of `std::convert::Into<i32>` for `&pyo3::PyCell<MyClass>` | ||
= note: required because of the requirements on the impl of `std::convert::TryFrom<&pyo3::PyCell<MyClass>>` for `i32` | ||
= note: required because of the requirements on the impl of `Into<i32>` for `&PyCell<MyClass>` | ||
= note: required because of the requirements on the impl of `TryFrom<&PyCell<MyClass>>` for `i32` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
error[E0277]: the trait bound `std::result::Result<(), MyError>: pyo3::callback::IntoPyCallbackOutput<_>` is not satisfied | ||
error[E0277]: the trait bound `std::result::Result<(), MyError>: IntoPyCallbackOutput<_>` is not satisfied | ||
--> $DIR/invalid_result_conversion.rs:22:1 | ||
| | ||
22 | #[pyfunction] | ||
| ^^^^^^^^^^^^^ the trait `pyo3::callback::IntoPyCallbackOutput<_>` is not implemented for `std::result::Result<(), MyError>` | ||
| ^^^^^^^^^^^^^ the trait `IntoPyCallbackOutput<_>` is not implemented for `std::result::Result<(), MyError>` | ||
| | ||
::: $WORKSPACE/src/callback.rs:170:8 | ||
::: $WORKSPACE/src/callback.rs | ||
| | ||
170 | T: IntoPyCallbackOutput<U>, | ||
| T: IntoPyCallbackOutput<U>, | ||
| ----------------------- required by this bound in `pyo3::callback::convert` | ||
| | ||
= help: the following implementations were found: | ||
<std::result::Result<T, E> as pyo3::callback::IntoPyCallbackOutput<U>> | ||
<std::result::Result<T, E> as IntoPyCallbackOutput<U>> | ||
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error[E0277]: the trait bound `TestClass: std::clone::Clone` is not satisfied | ||
error[E0277]: the trait bound `TestClass: Clone` is not satisfied | ||
--> $DIR/missing_clone.rs:15:32 | ||
| | ||
15 | let t: TestClass = pyvalue.extract(py).unwrap(); | ||
| ^^^^^^^ the trait `std::clone::Clone` is not implemented for `TestClass` | ||
| ^^^^^^^ the trait `Clone` is not implemented for `TestClass` | ||
| | ||
= note: required because of the requirements on the impl of `pyo3::FromPyObject<'_>` for `TestClass` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters