-
Notifications
You must be signed in to change notification settings - Fork 778
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
Showing
6 changed files
with
29 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
error[E0277]: the trait bound `i32: From<&PyCell<MyClass>>` is not satisfied | ||
--> tests/ui/invalid_pymethod_receiver.rs:8:43 | ||
| | ||
8 | fn method_with_invalid_self_type(slf: i32, py: Python, index: u32) {} | ||
| ^^^ the trait `From<&PyCell<MyClass>>` is not implemented for `i32` | ||
| | ||
= help: the following implementations were found: | ||
<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 `Into<i32>` for `&PyCell<MyClass>` | ||
= note: required because of the requirements on the impl of `TryFrom<&PyCell<MyClass>>` for `i32` | ||
note: required by `std::convert::TryFrom::try_from` | ||
--> $RUST/core/src/convert/mod.rs | ||
| | ||
| fn try_from(value: T) -> Result<Self, Self::Error>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
--> tests/ui/invalid_pymethod_receiver.rs:8:43 | ||
| | ||
8 | fn method_with_invalid_self_type(slf: i32, py: Python, index: u32) {} | ||
| ^^^ the trait `From<&PyCell<MyClass>>` is not implemented for `i32` | ||
| | ||
= help: the following implementations were found: | ||
<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 `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
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,12 @@ | ||
error[E0277]: the trait bound `TestClass: Clone` is not satisfied | ||
--> tests/ui/missing_clone.rs:15:32 | ||
| | ||
15 | let t: TestClass = pyvalue.extract(py).unwrap(); | ||
| ^^^^^^^ the trait `Clone` is not implemented for `TestClass` | ||
| | ||
= note: required because of the requirements on the impl of `pyo3::FromPyObject<'_>` for `TestClass` | ||
--> tests/ui/missing_clone.rs:15:32 | ||
| | ||
15 | let t: TestClass = pyvalue.extract(py).unwrap(); | ||
| ^^^^^^^ the trait `Clone` is not implemented for `TestClass` | ||
| | ||
= note: required because of the requirements on the impl of `pyo3::FromPyObject<'_>` for `TestClass` | ||
note: required by a bound in `pyo3::Py::<T>::extract` | ||
--> src/instance.rs:518:12 | ||
| | ||
518 | D: FromPyObject<'p>, | ||
| ^^^^^^^^^^^^^^^^ required by this bound in `pyo3::Py::<T>::extract` |
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