You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&str`, which is required by `BoundRef<'_, '_, pyo3::types::PyModule>: Into<_>`
54
+
| ^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&str`
55
55
|
56
56
= help: the following other types implement trait `From<T>`:
Copy file name to clipboardExpand all lines: tests/ui/not_send.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ error[E0277]: `*mut pyo3::Python<'static>` cannot be shared between threads safe
6
6
| |
7
7
| required by a bound introduced by this call
8
8
|
9
-
= help: within `pyo3::Python<'_>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`, which is required by `{closure@$DIR/tests/ui/not_send.rs:4:22: 4:24}: Ungil`
9
+
= help: within `pyo3::Python<'_>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`
10
10
note: required because it appears within the type `PhantomData<*mut pyo3::Python<'static>>`
Copy file name to clipboardExpand all lines: tests/ui/not_send2.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ error[E0277]: `*mut pyo3::Python<'static>` cannot be shared between threads safe
9
9
10 | | });
10
10
| |_________^ `*mut pyo3::Python<'static>` cannot be shared between threads safely
11
11
|
12
-
= help: within `pyo3::Bound<'_, PyString>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`, which is required by `{closure@$DIR/tests/ui/not_send2.rs:8:26: 8:28}: Ungil`
12
+
= help: within `pyo3::Bound<'_, PyString>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`
13
13
note: required because it appears within the type `PhantomData<*mut pyo3::Python<'static>>`
Copy file name to clipboardExpand all lines: tests/ui/pyclass_send.stderr
+6-6
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0277]: `*mut c_void` cannot be shared between threads safely
4
4
5 | struct NotSyncNotSend(*mut c_void);
5
5
| ^^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
6
6
|
7
-
= help: within `NotSyncNotSend`, the trait `Sync` is not implemented for `*mut c_void`, which is required by `NotSyncNotSend: Sync`
7
+
= help: within `NotSyncNotSend`, the trait `Sync` is not implemented for `*mut c_void`
8
8
note: required because it appears within the type `NotSyncNotSend`
9
9
--> tests/ui/pyclass_send.rs:5:8
10
10
|
@@ -25,7 +25,7 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
25
25
4 | #[pyclass]
26
26
| ^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
27
27
|
28
-
= help: within `NotSyncNotSend`, the trait `Send` is not implemented for `*mut c_void`, which is required by `SendablePyClass<NotSyncNotSend>: pyo3::impl_::pyclass::PyClassThreadChecker<NotSyncNotSend>`
28
+
= help: within `NotSyncNotSend`, the trait `Send` is not implemented for `*mut c_void`
29
29
= help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker<T>` is implemented for `SendablePyClass<T>`
30
30
note: required because it appears within the type `NotSyncNotSend`
31
31
--> tests/ui/pyclass_send.rs:5:8
@@ -46,7 +46,7 @@ error[E0277]: `*mut c_void` cannot be shared between threads safely
46
46
8 | struct SendNotSync(*mut c_void);
47
47
| ^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely
48
48
|
49
-
= help: within `SendNotSync`, the trait `Sync` is not implemented for `*mut c_void`, which is required by `SendNotSync: Sync`
49
+
= help: within `SendNotSync`, the trait `Sync` is not implemented for `*mut c_void`
50
50
note: required because it appears within the type `SendNotSync`
51
51
--> tests/ui/pyclass_send.rs:8:8
52
52
|
@@ -67,7 +67,7 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
67
67
11 | #[pyclass]
68
68
| ^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
69
69
|
70
-
= help: within `SyncNotSend`, the trait `Send` is not implemented for `*mut c_void`, which is required by `SendablePyClass<SyncNotSend>: pyo3::impl_::pyclass::PyClassThreadChecker<SyncNotSend>`
70
+
= help: within `SyncNotSend`, the trait `Send` is not implemented for `*mut c_void`
71
71
= help: the trait `pyo3::impl_::pyclass::PyClassThreadChecker<T>` is implemented for `SendablePyClass<T>`
72
72
note: required because it appears within the type `SyncNotSend`
73
73
--> tests/ui/pyclass_send.rs:12:8
@@ -88,7 +88,7 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
88
88
4 | #[pyclass]
89
89
| ^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
90
90
|
91
-
= help: within `NotSyncNotSend`, the trait `Send` is not implemented for `*mut c_void`, which is required by `NotSyncNotSend: Send`
91
+
= help: within `NotSyncNotSend`, the trait `Send` is not implemented for `*mut c_void`
92
92
note: required because it appears within the type `NotSyncNotSend`
93
93
--> tests/ui/pyclass_send.rs:5:8
94
94
|
@@ -107,7 +107,7 @@ error[E0277]: `*mut c_void` cannot be sent between threads safely
107
107
11 | #[pyclass]
108
108
| ^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely
109
109
|
110
-
= help: within `SyncNotSend`, the trait `Send` is not implemented for `*mut c_void`, which is required by `SyncNotSend: Send`
110
+
= help: within `SyncNotSend`, the trait `Send` is not implemented for `*mut c_void`
111
111
note: required because it appears within the type `SyncNotSend`
0 commit comments