Skip to content

Commit c36a08d

Browse files
tests: bless outputs
1 parent 3932d02 commit c36a08d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/ui/not_send.stderr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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>`
1010
note: 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+
| ^^^^^^^^^^^
1215
note: required because it appears within the type `pyo3::marker::NotSend`
1316
--> src/marker.rs
1417
|
1518
| struct NotSend(PhantomData<*mut Python<'static>>);
1619
| ^^^^^^^
1720
note: 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+
| ^^^^^^^^^^^
1925
note: required because it appears within the type `pyo3::Python<'_>`
2026
--> src/marker.rs
2127
|

tests/ui/not_send2.stderr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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>`
1313
note: 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+
| ^^^^^^^^^^^
1518
note: required because it appears within the type `pyo3::marker::NotSend`
1619
--> src/marker.rs
1720
|
1821
| struct NotSend(PhantomData<*mut Python<'static>>);
1922
| ^^^^^^^
2023
note: 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+
| ^^^^^^^^^^^
2228
note: required because it appears within the type `pyo3::Python<'_>`
2329
--> src/marker.rs
2430
|

0 commit comments

Comments
 (0)