2021-09-28 14:23:39 -05:00
|
|
|
error: this implementation is unsound, as some fields in `RingBuffer<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:16:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> Send for RingBuffer<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-02 18:22:37 -05:00
|
|
|
= note: `-D clippy::non-send-fields-in-send-ty` implied by `-D warnings`
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `data` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:11:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | data: Vec<UnsafeCell<T>>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-01 13:00:50 -05:00
|
|
|
= help: add bounds on type parameter `T` that satisfy `Vec<UnsafeCell<T>>: Send`
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `MvccRwLock<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:24:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> Send for MvccRwLock<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `lock` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:21:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | lock: Mutex<Box<T>>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
2021-10-01 13:00:50 -05:00
|
|
|
= help: add bounds on type parameter `T` that satisfy `Mutex<Box<T>>: Send`
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `ArcGuard<RC, T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:32:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<RC, T: Send> Send for ArcGuard<RC, T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `head` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:29:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | head: Arc<RC>,
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-01 13:00:50 -05:00
|
|
|
= help: add bounds on type parameter `RC` that satisfy `Arc<RC>: Send`
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `DeviceHandle<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:48:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T: UsbContext> Send for DeviceHandle<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `context` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:44:5
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
|
|
|
LL | context: T,
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
= help: add `T: Send` bound in `Send` impl
|
2021-09-23 05:45:24 -05:00
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
error: this implementation is unsound, as some fields in `NoGeneric` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:55:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | unsafe impl Send for NoGeneric {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `rc_is_not_send` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:52:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | rc_is_not_send: Rc<String>,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: use a thread-safe type that implements `Send`
|
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `MultiField<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:63:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> Send for MultiField<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field1` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:58:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | field1: T,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= help: add `T: Send` bound in `Send` impl
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field2` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:59:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | field2: T,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= help: add `T: Send` bound in `Send` impl
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field3` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:60:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | field3: T,
|
|
|
|
| ^^^^^^^^^
|
2021-09-28 14:23:39 -05:00
|
|
|
= help: add `T: Send` bound in `Send` impl
|
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `MyOption<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:70:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | unsafe impl<T> Send for MyOption<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `0` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:66:12
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | MySome(T),
|
|
|
|
| ^
|
2021-09-28 14:23:39 -05:00
|
|
|
= help: add `T: Send` bound in `Send` impl
|
2021-09-23 05:45:24 -05:00
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
error: this implementation is unsound, as some fields in `MultiParam<A, B>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:77:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | unsafe impl<A, B> Send for MultiParam<A, B> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `vec` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:74:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | vec: Vec<(A, B)>,
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2021-10-01 13:00:50 -05:00
|
|
|
= help: add bounds on type parameters `A, B` that satisfy `Vec<(A, B)>: Send`
|
2021-09-28 14:23:39 -05:00
|
|
|
|
2021-09-28 15:42:27 -05:00
|
|
|
error: this implementation is unsound, as some fields in `HeuristicTest` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:95:1
|
2021-09-28 15:42:27 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl Send for HeuristicTest {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field4` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:90:5
|
2021-09-28 15:42:27 -05:00
|
|
|
|
|
|
|
|
LL | field4: (*const NonSend, Rc<u8>),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: use a thread-safe type that implements `Send`
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
error: this implementation is unsound, as some fields in `AttrTest3<T>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:114:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<T> Send for AttrTest3<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `0` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:109:11
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | Enum2(T),
|
|
|
|
| ^
|
|
|
|
= help: add `T: Send` bound in `Send` impl
|
|
|
|
|
|
|
|
error: this implementation is unsound, as some fields in `Complex<P, u32>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:122:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<P> Send for Complex<P, u32> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field1` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:118:5
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
2021-09-28 14:23:39 -05:00
|
|
|
LL | field1: A,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= help: add `P: Send` bound in `Send` impl
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
error: this implementation is unsound, as some fields in `Complex<Q, MutexGuard<'static, bool>>` are `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:125:1
|
2021-09-23 05:45:24 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl<Q: Send> Send for Complex<Q, MutexGuard<'static, bool>> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
2021-10-01 13:00:50 -05:00
|
|
|
note: the type of field `field2` is `!Send`
|
2021-10-02 18:22:37 -05:00
|
|
|
--> $DIR/non_send_fields_in_send_ty.rs:119:5
|
2021-09-28 14:23:39 -05:00
|
|
|
|
|
|
|
|
LL | field2: B,
|
|
|
|
| ^^^^^^^^^
|
|
|
|
= help: use a thread-safe type that implements `Send`
|
2021-09-23 05:45:24 -05:00
|
|
|
|
2021-09-28 15:42:27 -05:00
|
|
|
error: aborting due to 12 previous errors
|
2021-09-23 05:45:24 -05:00
|
|
|
|