|
| 1 | +error: this implementation is unsound, as some fields in `NoGeneric` are `!Send` |
| 2 | + --> $DIR/test.rs:11:1 |
| 3 | + | |
| 4 | +LL | unsafe impl Send for NoGeneric {} |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::non-send-field-in-send-ty` implied by `-D warnings` |
| 8 | +note: the field `rc_is_not_send` has type `std::rc::Rc<std::string::String>` which is `!Send` |
| 9 | + --> $DIR/test.rs:8:5 |
| 10 | + | |
| 11 | +LL | rc_is_not_send: Rc<String>, |
| 12 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | + = help: use a thread-safe type that implements `Send` |
| 14 | + |
| 15 | +error: this implementation is unsound, as some fields in `MultiField<T>` are `!Send` |
| 16 | + --> $DIR/test.rs:19:1 |
| 17 | + | |
| 18 | +LL | unsafe impl<T> Send for MultiField<T> {} |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + | |
| 21 | +note: the field `field1` has type `T` which is `!Send` |
| 22 | + --> $DIR/test.rs:14:5 |
| 23 | + | |
| 24 | +LL | field1: T, |
| 25 | + | ^^^^^^^^^ |
| 26 | + = help: add `T: Send` bound in `Send` impl |
| 27 | +note: the field `field2` has type `T` which is `!Send` |
| 28 | + --> $DIR/test.rs:15:5 |
| 29 | + | |
| 30 | +LL | field2: T, |
| 31 | + | ^^^^^^^^^ |
| 32 | + = help: add `T: Send` bound in `Send` impl |
| 33 | +note: the field `field3` has type `T` which is `!Send` |
| 34 | + --> $DIR/test.rs:16:5 |
| 35 | + | |
| 36 | +LL | field3: T, |
| 37 | + | ^^^^^^^^^ |
| 38 | + = help: add `T: Send` bound in `Send` impl |
| 39 | + |
| 40 | +error: this implementation is unsound, as some fields in `MyOption<T>` are `!Send` |
| 41 | + --> $DIR/test.rs:26:1 |
| 42 | + | |
| 43 | +LL | unsafe impl<T> Send for MyOption<T> {} |
| 44 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 45 | + | |
| 46 | +note: the field `0` has type `T` which is `!Send` |
| 47 | + --> $DIR/test.rs:22:12 |
| 48 | + | |
| 49 | +LL | MySome(T), |
| 50 | + | ^ |
| 51 | + = help: add `T: Send` bound in `Send` impl |
| 52 | + |
| 53 | +error: this implementation is unsound, as some fields in `HeuristicTest` are `!Send` |
| 54 | + --> $DIR/test.rs:41:1 |
| 55 | + | |
| 56 | +LL | unsafe impl Send for HeuristicTest {} |
| 57 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 58 | + | |
| 59 | +note: the field `field1` has type `std::vec::Vec<*const NonSend>` which is `!Send` |
| 60 | + --> $DIR/test.rs:34:5 |
| 61 | + | |
| 62 | +LL | field1: Vec<*const NonSend>, |
| 63 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 64 | + = help: use a thread-safe type that implements `Send` |
| 65 | +note: the field `field2` has type `[*const NonSend; 3]` which is `!Send` |
| 66 | + --> $DIR/test.rs:35:5 |
| 67 | + | |
| 68 | +LL | field2: [*const NonSend; 3], |
| 69 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 70 | + = help: use a thread-safe type that implements `Send` |
| 71 | +note: the field `field3` has type `(*const NonSend, *const NonSend, *const NonSend)` which is `!Send` |
| 72 | + --> $DIR/test.rs:36:5 |
| 73 | + | |
| 74 | +LL | field3: (*const NonSend, *const NonSend, *const NonSend), |
| 75 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 76 | + = help: use a thread-safe type that implements `Send` |
| 77 | +note: the field `field4` has type `(*const NonSend, std::rc::Rc<u8>)` which is `!Send` |
| 78 | + --> $DIR/test.rs:37:5 |
| 79 | + | |
| 80 | +LL | field4: (*const NonSend, Rc<u8>), |
| 81 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 82 | + = help: use a thread-safe type that implements `Send` |
| 83 | +note: the field `field5` has type `std::vec::Vec<std::vec::Vec<*const NonSend>>` which is `!Send` |
| 84 | + --> $DIR/test.rs:38:5 |
| 85 | + | |
| 86 | +LL | field5: Vec<Vec<*const NonSend>>, |
| 87 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 88 | + = help: use a thread-safe type that implements `Send` |
| 89 | + |
| 90 | +error: aborting due to 4 previous errors |
| 91 | + |
0 commit comments