|
| 1 | +error[E0277]: `*mut c_void` cannot be shared between threads safely |
| 2 | + --> ui/autoreleasepool_not_send_sync.rs:10:5 |
| 3 | + | |
| 4 | +10 | needs_sync::<AutoreleasePool>(); |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely |
| 6 | + | |
| 7 | + = help: within `AutoreleasePool`, the trait `Sync` is not implemented for `*mut c_void` |
| 8 | + = note: required because it appears within the type `AutoreleasePool` |
| 9 | +note: required by a bound in `needs_sync` |
| 10 | + --> ui/autoreleasepool_not_send_sync.rs:6:27 |
| 11 | + | |
| 12 | +6 | fn needs_sync<T: ?Sized + Sync>() {} |
| 13 | + | ^^^^ required by this bound in `needs_sync` |
| 14 | + |
| 15 | +error[E0277]: `*mut UnsafeCell<c_void>` cannot be shared between threads safely |
| 16 | + --> ui/autoreleasepool_not_send_sync.rs:10:5 |
| 17 | + | |
| 18 | +10 | needs_sync::<AutoreleasePool>(); |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut UnsafeCell<c_void>` cannot be shared between threads safely |
| 20 | + | |
| 21 | + = help: within `AutoreleasePool`, the trait `Sync` is not implemented for `*mut UnsafeCell<c_void>` |
| 22 | + = note: required because it appears within the type `PhantomData<*mut UnsafeCell<c_void>>` |
| 23 | + = note: required because it appears within the type `AutoreleasePool` |
| 24 | +note: required by a bound in `needs_sync` |
| 25 | + --> ui/autoreleasepool_not_send_sync.rs:6:27 |
| 26 | + | |
| 27 | +6 | fn needs_sync<T: ?Sized + Sync>() {} |
| 28 | + | ^^^^ required by this bound in `needs_sync` |
| 29 | + |
| 30 | +error[E0277]: `*mut c_void` cannot be sent between threads safely |
| 31 | + --> ui/autoreleasepool_not_send_sync.rs:11:5 |
| 32 | + | |
| 33 | +11 | needs_send::<AutoreleasePool>(); |
| 34 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut c_void` cannot be sent between threads safely |
| 35 | + | |
| 36 | + = help: within `AutoreleasePool`, the trait `Send` is not implemented for `*mut c_void` |
| 37 | + = note: required because it appears within the type `AutoreleasePool` |
| 38 | +note: required by a bound in `needs_send` |
| 39 | + --> ui/autoreleasepool_not_send_sync.rs:7:27 |
| 40 | + | |
| 41 | +7 | fn needs_send<T: ?Sized + Send>() {} |
| 42 | + | ^^^^ required by this bound in `needs_send` |
| 43 | + |
| 44 | +error[E0277]: `*mut UnsafeCell<c_void>` cannot be sent between threads safely |
| 45 | + --> ui/autoreleasepool_not_send_sync.rs:11:5 |
| 46 | + | |
| 47 | +11 | needs_send::<AutoreleasePool>(); |
| 48 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*mut UnsafeCell<c_void>` cannot be sent between threads safely |
| 49 | + | |
| 50 | + = help: within `AutoreleasePool`, the trait `Send` is not implemented for `*mut UnsafeCell<c_void>` |
| 51 | + = note: required because it appears within the type `PhantomData<*mut UnsafeCell<c_void>>` |
| 52 | + = note: required because it appears within the type `AutoreleasePool` |
| 53 | +note: required by a bound in `needs_send` |
| 54 | + --> ui/autoreleasepool_not_send_sync.rs:7:27 |
| 55 | + | |
| 56 | +7 | fn needs_send<T: ?Sized + Send>() {} |
| 57 | + | ^^^^ required by this bound in `needs_send` |
0 commit comments