From 985412fb8f84bb9def6841e3f94a1505a1a70bd2 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Fri, 29 Dec 2023 13:02:44 +0000 Subject: [PATCH] ci: updates for Rust 1.75 --- tests/ui/abi3_nativetype_inheritance.stderr | 14 ++++++++++++++ tests/ui/pyclass_send.stderr | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/tests/ui/abi3_nativetype_inheritance.stderr b/tests/ui/abi3_nativetype_inheritance.stderr index eec14202fd5..647e1ad819e 100644 --- a/tests/ui/abi3_nativetype_inheritance.stderr +++ b/tests/ui/abi3_nativetype_inheritance.stderr @@ -7,3 +7,17 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied = help: the trait `PyClass` is implemented for `TestClass` = 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 trait `PyClass` is implemented for `TestClass` + = 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` diff --git a/tests/ui/pyclass_send.stderr b/tests/ui/pyclass_send.stderr index f279acc5f9f..7a80989b63f 100644 --- a/tests/ui/pyclass_send.stderr +++ b/tests/ui/pyclass_send.stderr @@ -16,3 +16,24 @@ note: required by a bound in `SendablePyClass` | pub struct SendablePyClass(PhantomData); | ^^^^ 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` cannot be sent between threads safely + --> tests/ui/pyclass_send.rs:4:1 + | +4 | #[pyclass] + | ^^^^^^^^^^ `Rc` cannot be sent between threads safely + | + = help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc` + = help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker` is implemented for `SendablePyClass` +note: required because it appears within the type `NotThreadSafe` + --> tests/ui/pyclass_send.rs:5:8 + | +5 | struct NotThreadSafe { + | ^^^^^^^^^^^^^ + = note: required for `SendablePyClass` to implement `pyo3::impl_::pyclass::PyClassThreadChecker` +note: required by a bound in `PyClassImpl::ThreadChecker` + --> src/impl_/pyclass.rs + | + | type ThreadChecker: PyClassThreadChecker; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 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)