Skip to content

Commit 985412f

Browse files
committed
ci: updates for Rust 1.75
1 parent ecb0e9c commit 985412f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

tests/ui/abi3_nativetype_inheritance.stderr

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,17 @@ error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
77
= help: the trait `PyClass` is implemented for `TestClass`
88
= note: required for `PyDict` to implement `PyClassBaseType`
99
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
10+
11+
error[E0277]: the trait bound `PyDict: PyClass` is not satisfied
12+
--> tests/ui/abi3_nativetype_inheritance.rs:5:19
13+
|
14+
5 | #[pyclass(extends=PyDict)]
15+
| ^^^^^^ the trait `PyClass` is not implemented for `PyDict`
16+
|
17+
= help: the trait `PyClass` is implemented for `TestClass`
18+
= note: required for `PyDict` to implement `PyClassBaseType`
19+
note: required by a bound in `PyClassImpl::BaseType`
20+
--> src/impl_/pyclass.rs
21+
|
22+
| type BaseType: PyTypeInfo + PyClassBaseType;
23+
| ^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::BaseType`

tests/ui/pyclass_send.stderr

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ note: required by a bound in `SendablePyClass`
1616
| pub struct SendablePyClass<T: Send>(PhantomData<T>);
1717
| ^^^^ required by this bound in `SendablePyClass`
1818
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
19+
20+
error[E0277]: `Rc<i32>` cannot be sent between threads safely
21+
--> tests/ui/pyclass_send.rs:4:1
22+
|
23+
4 | #[pyclass]
24+
| ^^^^^^^^^^ `Rc<i32>` cannot be sent between threads safely
25+
|
26+
= help: within `NotThreadSafe`, the trait `Send` is not implemented for `Rc<i32>`
27+
= help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker<T>` is implemented for `SendablePyClass<T>`
28+
note: required because it appears within the type `NotThreadSafe`
29+
--> tests/ui/pyclass_send.rs:5:8
30+
|
31+
5 | struct NotThreadSafe {
32+
| ^^^^^^^^^^^^^
33+
= note: required for `SendablePyClass<NotThreadSafe>` to implement `pyo3::impl_::pyclass::PyClassThreadChecker<NotThreadSafe>`
34+
note: required by a bound in `PyClassImpl::ThreadChecker`
35+
--> src/impl_/pyclass.rs
36+
|
37+
| type ThreadChecker: PyClassThreadChecker<Self>;
38+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::ThreadChecker`
39+
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)