File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,13 +9,19 @@ error[E0277]: `*mut pyo3::Python<'static>` cannot be shared between threads safe
99 = help: within `pyo3::Python<'_>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`
1010note: required because it appears within the type `PhantomData<*mut pyo3::Python<'static>>`
1111 --> $RUST/core/src/marker.rs
12+ |
13+ | pub struct PhantomData<T: PointeeSized>;
14+ | ^^^^^^^^^^^
1215note: required because it appears within the type `pyo3::marker::NotSend`
1316 --> src/marker.rs
1417 |
1518 | struct NotSend(PhantomData<*mut Python<'static>>);
1619 | ^^^^^^^
1720note: required because it appears within the type `PhantomData<pyo3::marker::NotSend>`
1821 --> $RUST/core/src/marker.rs
22+ |
23+ | pub struct PhantomData<T: PointeeSized>;
24+ | ^^^^^^^^^^^
1925note: required because it appears within the type `pyo3::Python<'_>`
2026 --> src/marker.rs
2127 |
Original file line number Diff line number Diff line change @@ -12,13 +12,19 @@ error[E0277]: `*mut pyo3::Python<'static>` cannot be shared between threads safe
1212 = help: within `pyo3::Bound<'_, PyString>`, the trait `Sync` is not implemented for `*mut pyo3::Python<'static>`
1313note: required because it appears within the type `PhantomData<*mut pyo3::Python<'static>>`
1414 --> $RUST/core/src/marker.rs
15+ |
16+ | pub struct PhantomData<T: PointeeSized>;
17+ | ^^^^^^^^^^^
1518note: required because it appears within the type `pyo3::marker::NotSend`
1619 --> src/marker.rs
1720 |
1821 | struct NotSend(PhantomData<*mut Python<'static>>);
1922 | ^^^^^^^
2023note: required because it appears within the type `PhantomData<pyo3::marker::NotSend>`
2124 --> $RUST/core/src/marker.rs
25+ |
26+ | pub struct PhantomData<T: PointeeSized>;
27+ | ^^^^^^^^^^^
2228note: required because it appears within the type `pyo3::Python<'_>`
2329 --> src/marker.rs
2430 |
You can’t perform that action at this time.
0 commit comments