|
1 | 1 | error[E0277]: `*mut c_void` cannot be sent between threads safely
|
2 | 2 | --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:5:11
|
3 | 3 | |
|
4 |
| -5 | check(&obj); |
5 |
| - | ----- ^^^^ `*mut c_void` cannot be sent between threads safely |
6 |
| - | | |
7 |
| - | required by a bound introduced by this call |
8 |
| - | |
9 |
| - = help: the trait `Send` is not implemented for `*mut c_void` |
10 |
| - = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send` |
| 4 | + 5 | check(&obj); |
| 5 | + | ----- ^^^^ `*mut c_void` cannot be sent between threads safely |
| 6 | + | | |
| 7 | + | required by a bound introduced by this call |
| 8 | + | |
| 9 | + = help: the trait `Send` is not implemented for `*mut c_void` |
| 10 | + = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send` |
11 | 11 | note: required because it appears within the type `Object`
|
12 |
| - --> src/object.rs |
13 |
| - | |
14 |
| - | pub Object, *mut std::os::raw::c_void, (), gobject_ffi::GObject, @ffi_class gobject_ffi::GObjectClass, @type_ gobject_ffi::g_object_g... |
15 |
| - | ^^^^^^ |
| 12 | + --> src/object.rs |
| 13 | + | |
| 14 | + | pub Object, *mut std::os::raw::c_void, (), gobject_ffi::GObject, @ffi_class gobject_ffi::GObjectClass, @type_ gobject_ffi::g_object_g... |
| 15 | + | ^^^^^^ |
16 | 16 | note: required by a bound in `main::check`
|
17 |
| - --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17 |
18 |
| - | |
19 |
| -2 | fn check<T: Send + Sync>(_obj: &T) {} |
20 |
| - | ^^^^ required by this bound in `check` |
| 17 | + --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17 |
| 18 | + | |
| 19 | + 2 | fn check<T: Send + Sync>(_obj: &T) {} |
| 20 | + | ^^^^ required by this bound in `check` |
21 | 21 |
|
22 | 22 | error[E0277]: `*mut c_void` cannot be shared between threads safely
|
23 | 23 | --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:5:11
|
24 | 24 | |
|
25 |
| -5 | check(&obj); |
26 |
| - | ----- ^^^^ `*mut c_void` cannot be shared between threads safely |
27 |
| - | | |
28 |
| - | required by a bound introduced by this call |
29 |
| - | |
30 |
| - = help: the trait `Sync` is not implemented for `*mut c_void` |
31 |
| - = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send` |
| 25 | + 5 | check(&obj); |
| 26 | + | ----- ^^^^ `*mut c_void` cannot be shared between threads safely |
| 27 | + | | |
| 28 | + | required by a bound introduced by this call |
| 29 | + | |
| 30 | + = help: the trait `Sync` is not implemented for `*mut c_void` |
| 31 | + = note: required for `TypedObjectRef<*mut c_void, ()>` to implement `Send` |
32 | 32 | note: required because it appears within the type `Object`
|
33 |
| - --> src/object.rs |
34 |
| - | |
35 |
| - | pub Object, *mut std::os::raw::c_void, (), gobject_ffi::GObject, @ffi_class gobject_ffi::GObjectClass, @type_ gobject_ffi::g_object_g... |
36 |
| - | ^^^^^^ |
| 33 | + --> src/object.rs |
| 34 | + | |
| 35 | + | pub Object, *mut std::os::raw::c_void, (), gobject_ffi::GObject, @ffi_class gobject_ffi::GObjectClass, @type_ gobject_ffi::g_object_g... |
| 36 | + | ^^^^^^ |
37 | 37 | note: required by a bound in `main::check`
|
38 |
| - --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17 |
39 |
| - | |
40 |
| -2 | fn check<T: Send + Sync>(_obj: &T) {} |
41 |
| - | ^^^^ required by this bound in `check` |
| 38 | + --> tests/subclass_compiletest/03-object-no-auto-send-sync.rs:2:17 |
| 39 | + | |
| 40 | + 2 | fn check<T: Send + Sync>(_obj: &T) {} |
| 41 | + | ^^^^ required by this bound in `check` |
0 commit comments