|
| 1 | +error: non-`Send` field found in a `Send` struct |
| 2 | + --> $DIR/non_send_field_in_send_ty.rs:10:5 |
| 3 | + | |
| 4 | +LL | data: Vec<UnsafeCell<T>>, |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::non-send-field-in-send-ty` implied by `-D warnings` |
| 8 | +note: type `std::vec::Vec<std::cell::UnsafeCell<T>>` doesn't implement `Send` when `RingBuffer<T>` is `Send` |
| 9 | + --> $DIR/non_send_field_in_send_ty.rs:15:1 |
| 10 | + | |
| 11 | +LL | unsafe impl<T> Send for RingBuffer<T> {} |
| 12 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 13 | + |
| 14 | +error: non-`Send` field found in a `Send` struct |
| 15 | + --> $DIR/non_send_field_in_send_ty.rs:20:5 |
| 16 | + | |
| 17 | +LL | lock: Mutex<Box<T>>, |
| 18 | + | ^^^^^^^^^^^^^^^^^^^ |
| 19 | + | |
| 20 | +note: type `std::sync::Mutex<std::boxed::Box<T>>` doesn't implement `Send` when `MvccRwLock<T>` is `Send` |
| 21 | + --> $DIR/non_send_field_in_send_ty.rs:23:1 |
| 22 | + | |
| 23 | +LL | unsafe impl<T> Send for MvccRwLock<T> {} |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 25 | + |
| 26 | +error: non-`Send` field found in a `Send` struct |
| 27 | + --> $DIR/non_send_field_in_send_ty.rs:28:5 |
| 28 | + | |
| 29 | +LL | head: Arc<RC>, |
| 30 | + | ^^^^^^^^^^^^^ |
| 31 | + | |
| 32 | +note: type `std::sync::Arc<RC>` doesn't implement `Send` when `ArcGuard<RC, T>` is `Send` |
| 33 | + --> $DIR/non_send_field_in_send_ty.rs:31:1 |
| 34 | + | |
| 35 | +LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {} |
| 36 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 37 | + |
| 38 | +error: non-`Send` field found in a `Send` struct |
| 39 | + --> $DIR/non_send_field_in_send_ty.rs:43:5 |
| 40 | + | |
| 41 | +LL | context: T, |
| 42 | + | ^^^^^^^^^^ |
| 43 | + | |
| 44 | +note: type `T` doesn't implement `Send` when `DeviceHandle<T>` is `Send` |
| 45 | + --> $DIR/non_send_field_in_send_ty.rs:47:1 |
| 46 | + | |
| 47 | +LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {} |
| 48 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 49 | + = help: add `T: Send` bound |
| 50 | + |
| 51 | +error: non-`Send` field found in a `Send` struct |
| 52 | + --> $DIR/non_send_field_in_send_ty.rs:51:5 |
| 53 | + | |
| 54 | +LL | field1: T, |
| 55 | + | ^^^^^^^^^ |
| 56 | + | |
| 57 | +note: type `T` doesn't implement `Send` when `MultiField<T>` is `Send` |
| 58 | + --> $DIR/non_send_field_in_send_ty.rs:56:1 |
| 59 | + | |
| 60 | +LL | unsafe impl<T> Send for MultiField<T> {} |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 62 | + = help: add `T: Send` bound |
| 63 | + |
| 64 | +error: non-`Send` field found in a `Send` struct |
| 65 | + --> $DIR/non_send_field_in_send_ty.rs:52:5 |
| 66 | + | |
| 67 | +LL | field2: T, |
| 68 | + | ^^^^^^^^^ |
| 69 | + | |
| 70 | +note: type `T` doesn't implement `Send` when `MultiField<T>` is `Send` |
| 71 | + --> $DIR/non_send_field_in_send_ty.rs:56:1 |
| 72 | + | |
| 73 | +LL | unsafe impl<T> Send for MultiField<T> {} |
| 74 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 75 | + = help: add `T: Send` bound |
| 76 | + |
| 77 | +error: non-`Send` field found in a `Send` struct |
| 78 | + --> $DIR/non_send_field_in_send_ty.rs:53:5 |
| 79 | + | |
| 80 | +LL | field3: T, |
| 81 | + | ^^^^^^^^^ |
| 82 | + | |
| 83 | +note: type `T` doesn't implement `Send` when `MultiField<T>` is `Send` |
| 84 | + --> $DIR/non_send_field_in_send_ty.rs:56:1 |
| 85 | + | |
| 86 | +LL | unsafe impl<T> Send for MultiField<T> {} |
| 87 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 88 | + = help: add `T: Send` bound |
| 89 | + |
| 90 | +error: non-`Send` field found in a `Send` struct |
| 91 | + --> $DIR/non_send_field_in_send_ty.rs:59:12 |
| 92 | + | |
| 93 | +LL | MySome(T), |
| 94 | + | ^ |
| 95 | + | |
| 96 | +note: type `T` doesn't implement `Send` when `MyOption<T>` is `Send` |
| 97 | + --> $DIR/non_send_field_in_send_ty.rs:63:1 |
| 98 | + | |
| 99 | +LL | unsafe impl<T> Send for MyOption<T> {} |
| 100 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 101 | + = help: add `T: Send` bound |
| 102 | + |
| 103 | +error: non-`Send` field found in a `Send` struct |
| 104 | + --> $DIR/non_send_field_in_send_ty.rs:88:11 |
| 105 | + | |
| 106 | +LL | Enum2(T), |
| 107 | + | ^ |
| 108 | + | |
| 109 | +note: type `T` doesn't implement `Send` when `AttrTest3<T>` is `Send` |
| 110 | + --> $DIR/non_send_field_in_send_ty.rs:93:1 |
| 111 | + | |
| 112 | +LL | unsafe impl<T> Send for AttrTest3<T> {} |
| 113 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 114 | + = help: add `T: Send` bound |
| 115 | + |
| 116 | +error: non-`Send` field found in a `Send` struct |
| 117 | + --> $DIR/non_send_field_in_send_ty.rs:97:5 |
| 118 | + | |
| 119 | +LL | field1: A, |
| 120 | + | ^^^^^^^^^ |
| 121 | + | |
| 122 | +note: type `P` doesn't implement `Send` when `Complex<P, u32>` is `Send` |
| 123 | + --> $DIR/non_send_field_in_send_ty.rs:101:1 |
| 124 | + | |
| 125 | +LL | unsafe impl<P> Send for Complex<P, u32> {} |
| 126 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 127 | + = help: add `P: Send` bound |
| 128 | + |
| 129 | +error: non-`Send` field found in a `Send` struct |
| 130 | + --> $DIR/non_send_field_in_send_ty.rs:98:5 |
| 131 | + | |
| 132 | +LL | field2: B, |
| 133 | + | ^^^^^^^^^ |
| 134 | + | |
| 135 | +note: type `std::sync::MutexGuard<'static, bool>` doesn't implement `Send` when `Complex<Q, std::sync::MutexGuard<'static, bool>>` is `Send` |
| 136 | + --> $DIR/non_send_field_in_send_ty.rs:104:1 |
| 137 | + | |
| 138 | +LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {} |
| 139 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 140 | + |
| 141 | +error: aborting due to 11 previous errors |
| 142 | + |
0 commit comments