Skip to content

Commit b4d5935

Browse files
authored
ci: updates for Rust 1.87 (PyO3#5147)
1 parent 775f03b commit b4d5935

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

tests/ui/invalid_proto_pymethods.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ error: `text_signature` cannot be used with magic method `__bool__`
2222
46 | #[pyo3(name = "__bool__", text_signature = "")]
2323
| ^^^^^^^^^^^^^^
2424

25+
error[E0592]: duplicate definitions with name `__pymethod___richcmp____`
26+
--> tests/ui/invalid_proto_pymethods.rs:55:1
27+
|
28+
55 | #[pymethods]
29+
| ^^^^^^^^^^^^
30+
| |
31+
| duplicate definitions for `__pymethod___richcmp____`
32+
| other definition for `__pymethod___richcmp____`
33+
|
34+
= note: this error originates in the macro `::pyo3::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
35+
2536
error[E0034]: multiple applicable items in scope
2637
--> tests/ui/invalid_proto_pymethods.rs:55:1
2738
|
@@ -40,17 +51,6 @@ note: candidate #2 is defined in an impl for the type `EqAndRichcmp`
4051
| ^^^^^^^^^^^^
4152
= note: this error originates in the macro `::pyo3::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
4253

43-
error[E0592]: duplicate definitions with name `__pymethod___richcmp____`
44-
--> tests/ui/invalid_proto_pymethods.rs:55:1
45-
|
46-
55 | #[pymethods]
47-
| ^^^^^^^^^^^^
48-
| |
49-
| duplicate definitions for `__pymethod___richcmp____`
50-
| other definition for `__pymethod___richcmp____`
51-
|
52-
= note: this error originates in the macro `::pyo3::impl_::pyclass::generate_pyclass_richcompare_slot` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info)
53-
5454
error[E0034]: multiple applicable items in scope
5555
--> tests/ui/invalid_proto_pymethods.rs:55:1
5656
|

tests/ui/pyclass_send.stderr

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
error[E0277]: `*mut c_void` cannot be shared between threads safely
2-
--> tests/ui/pyclass_send.rs:5:8
3-
|
4-
5 | struct NotSyncNotSend(*mut c_void);
5-
| ^^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
6-
|
7-
= help: within `NotSyncNotSend`, the trait `Sync` is not implemented for `*mut c_void`
8-
note: required because it appears within the type `NotSyncNotSend`
9-
--> tests/ui/pyclass_send.rs:5:8
10-
|
11-
5 | struct NotSyncNotSend(*mut c_void);
12-
| ^^^^^^^^^^^^^^
13-
note: required by a bound in `assert_pyclass_sync`
14-
--> src/impl_/pyclass/assertions.rs
15-
|
16-
| pub const fn assert_pyclass_sync<T>()
17-
| ------------------- required by a bound in this function
18-
| where
19-
| T: PyClassSync + Sync,
20-
| ^^^^ required by this bound in `assert_pyclass_sync`
21-
221
error[E0277]: `*mut c_void` cannot be sent between threads safely
232
--> tests/ui/pyclass_send.rs:4:1
243
|
@@ -40,27 +19,6 @@ note: required by a bound in `PyClassImpl::ThreadChecker`
4019
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PyClassImpl::ThreadChecker`
4120
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
4221

43-
error[E0277]: `*mut c_void` cannot be shared between threads safely
44-
--> tests/ui/pyclass_send.rs:8:8
45-
|
46-
8 | struct SendNotSync(*mut c_void);
47-
| ^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
48-
|
49-
= help: within `SendNotSync`, the trait `Sync` is not implemented for `*mut c_void`
50-
note: required because it appears within the type `SendNotSync`
51-
--> tests/ui/pyclass_send.rs:8:8
52-
|
53-
8 | struct SendNotSync(*mut c_void);
54-
| ^^^^^^^^^^^
55-
note: required by a bound in `assert_pyclass_sync`
56-
--> src/impl_/pyclass/assertions.rs
57-
|
58-
| pub const fn assert_pyclass_sync<T>()
59-
| ------------------- required by a bound in this function
60-
| where
61-
| T: PyClassSync + Sync,
62-
| ^^^^ required by this bound in `assert_pyclass_sync`
63-
6422
error[E0277]: `*mut c_void` cannot be sent between threads safely
6523
--> tests/ui/pyclass_send.rs:11:1
6624
|
@@ -119,3 +77,45 @@ note: required by a bound in `SendablePyClass`
11977
| pub struct SendablePyClass<T: Send>(PhantomData<T>);
12078
| ^^^^ required by this bound in `SendablePyClass`
12179
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
80+
81+
error[E0277]: `*mut c_void` cannot be shared between threads safely
82+
--> tests/ui/pyclass_send.rs:5:8
83+
|
84+
5 | struct NotSyncNotSend(*mut c_void);
85+
| ^^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
86+
|
87+
= help: within `NotSyncNotSend`, the trait `Sync` is not implemented for `*mut c_void`
88+
note: required because it appears within the type `NotSyncNotSend`
89+
--> tests/ui/pyclass_send.rs:5:8
90+
|
91+
5 | struct NotSyncNotSend(*mut c_void);
92+
| ^^^^^^^^^^^^^^
93+
note: required by a bound in `assert_pyclass_sync`
94+
--> src/impl_/pyclass/assertions.rs
95+
|
96+
| pub const fn assert_pyclass_sync<T>()
97+
| ------------------- required by a bound in this function
98+
| where
99+
| T: PyClassSync + Sync,
100+
| ^^^^ required by this bound in `assert_pyclass_sync`
101+
102+
error[E0277]: `*mut c_void` cannot be shared between threads safely
103+
--> tests/ui/pyclass_send.rs:8:8
104+
|
105+
8 | struct SendNotSync(*mut c_void);
106+
| ^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
107+
|
108+
= help: within `SendNotSync`, the trait `Sync` is not implemented for `*mut c_void`
109+
note: required because it appears within the type `SendNotSync`
110+
--> tests/ui/pyclass_send.rs:8:8
111+
|
112+
8 | struct SendNotSync(*mut c_void);
113+
| ^^^^^^^^^^^
114+
note: required by a bound in `assert_pyclass_sync`
115+
--> src/impl_/pyclass/assertions.rs
116+
|
117+
| pub const fn assert_pyclass_sync<T>()
118+
| ------------------- required by a bound in this function
119+
| where
120+
| T: PyClassSync + Sync,
121+
| ^^^^ required by this bound in `assert_pyclass_sync`

0 commit comments

Comments
 (0)