ci: updates for Rust 1.75
This commit is contained in:
parent
066e33488b
commit
e42d8cf612
|
@ -6,6 +6,22 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
|
|||
|
|
||||
= help: the following other types implement trait `PyClass`:
|
||||
TestClass
|
||||
Coroutine
|
||||
pyo3::coroutine::Coroutine
|
||||
= note: required for `PyDict` to implement `PyClassBaseType`
|
||||
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
|
||||
--> tests/ui/abi3_nativetype_inheritance.rs:5:19
|
||||
|
|
||||
5 | #[pyclass(extends=PyDict)]
|
||||
| ^^^^^^ the trait `PyClass` is not implemented for `PyDict`
|
||||
|
|
||||
= help: the following other types implement trait `PyClass`:
|
||||
TestClass
|
||||
pyo3::coroutine::Coroutine
|
||||
= note: required for `PyDict` to implement `PyClassBaseType`
|
||||
note: required by a bound in `PyClassImpl::BaseType`
|
||||
--> src/impl_/pyclass.rs
|
||||
|
|
||||
| type BaseType: PyTypeInfo + PyClassBaseType;
|
||||
| ^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::BaseType`
|
||||
|
|
|
@ -74,7 +74,7 @@ error[E0277]: the trait bound `CancelHandle: PyClass` is not satisfied
|
|||
41 | async fn missing_cancel_handle_attribute(_param: pyo3::coroutine::CancelHandle) {}
|
||||
| ^^^^ the trait `PyClass` is not implemented for `CancelHandle`
|
||||
|
|
||||
= help: the trait `PyClass` is implemented for `Coroutine`
|
||||
= help: the trait `PyClass` is implemented for `pyo3::coroutine::Coroutine`
|
||||
= note: required for `CancelHandle` to implement `FromPyObject<'_>`
|
||||
= note: required for `CancelHandle` to implement `PyFunctionArgument<'_, '_>`
|
||||
note: required by a bound in `extract_argument`
|
||||
|
@ -93,8 +93,8 @@ error[E0277]: the trait bound `CancelHandle: Clone` is not satisfied
|
|||
| ^^^^ the trait `Clone` is not implemented for `CancelHandle`
|
||||
|
|
||||
= help: the following other types implement trait `PyFunctionArgument<'a, 'py>`:
|
||||
&'a Coroutine
|
||||
&'a mut Coroutine
|
||||
&'a pyo3::coroutine::Coroutine
|
||||
&'a mut pyo3::coroutine::Coroutine
|
||||
= note: required for `CancelHandle` to implement `FromPyObject<'_>`
|
||||
= note: required for `CancelHandle` to implement `PyFunctionArgument<'_, '_>`
|
||||
note: required by a bound in `extract_argument`
|
||||
|
|
|
@ -16,3 +16,24 @@ note: required by a bound in `SendablePyClass`
|
|||
| pub struct SendablePyClass<T: Send>(PhantomData<T>);
|
||||
| ^^^^ required by this bound in `SendablePyClass`
|
||||
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: `Rc<i32>` cannot be sent between threads safely
|
||||
--> tests/ui/pyclass_send.rs:4:1
|
||||
|
|
||||
4 | #[pyclass]
|
||||
| ^^^^^^^^^^ `Rc<i32>` cannot be sent between threads safely
|
||||
|
|
||||
= help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc<i32>`
|
||||
= help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker<T>` is implemented for `SendablePyClass<T>`
|
||||
note: required because it appears within the type `NotThreadSafe`
|
||||
--> tests/ui/pyclass_send.rs:5:8
|
||||
|
|
||||
5 | struct NotThreadSafe {
|
||||
| ^^^^^^^^^^^^^
|
||||
= note: required for `SendablePyClass<NotThreadSafe>` to implement `pyo3::impl_::pyclass::PyClassThreadChecker<NotThreadSafe>`
|
||||
note: required by a bound in `PyClassImpl::ThreadChecker`
|
||||
--> src/impl_/pyclass.rs
|
||||
|
|
||||
| type ThreadChecker: PyClassThreadChecker<Self>;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::ThreadChecker`
|
||||
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Reference in New Issue