]> git.lizzy.rs Git - rust.git/blob - tests/ui-toml/strict_non_send_fields_in_send_ty/test.stderr
[arithmetic-side-effects]: Consider user-provided pairs
[rust.git] / tests / ui-toml / strict_non_send_fields_in_send_ty / test.stderr
1 error: some fields in `NoGeneric` are not safe to be sent to another thread
2   --> $DIR/test.rs:11:1
3    |
4 LL | unsafe impl Send for NoGeneric {}
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: it is not safe to send field `rc_is_not_send` to another thread
8   --> $DIR/test.rs:8:5
9    |
10 LL |     rc_is_not_send: Rc<String>,
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = help: use a thread-safe type that implements `Send`
13    = note: `-D clippy::non-send-fields-in-send-ty` implied by `-D warnings`
14
15 error: some fields in `MultiField<T>` are not safe to be sent to another thread
16   --> $DIR/test.rs:19:1
17    |
18 LL | unsafe impl<T> Send for MultiField<T> {}
19    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20    |
21 note: it is not safe to send field `field1` to another thread
22   --> $DIR/test.rs:14:5
23    |
24 LL |     field1: T,
25    |     ^^^^^^^^^
26    = help: add `T: Send` bound in `Send` impl
27 note: it is not safe to send field `field2` to another thread
28   --> $DIR/test.rs:15:5
29    |
30 LL |     field2: T,
31    |     ^^^^^^^^^
32    = help: add `T: Send` bound in `Send` impl
33 note: it is not safe to send field `field3` to another thread
34   --> $DIR/test.rs:16:5
35    |
36 LL |     field3: T,
37    |     ^^^^^^^^^
38    = help: add `T: Send` bound in `Send` impl
39
40 error: some fields in `MyOption<T>` are not safe to be sent to another thread
41   --> $DIR/test.rs:26:1
42    |
43 LL | unsafe impl<T> Send for MyOption<T> {}
44    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45    |
46 note: it is not safe to send field `0` to another thread
47   --> $DIR/test.rs:22:12
48    |
49 LL |     MySome(T),
50    |            ^
51    = help: add `T: Send` bound in `Send` impl
52
53 error: some fields in `HeuristicTest` are not safe to be sent to another thread
54   --> $DIR/test.rs:41:1
55    |
56 LL | unsafe impl Send for HeuristicTest {}
57    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58    |
59 note: it is not safe to send field `field1` to another thread
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: it is not safe to send field `field2` to another thread
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: it is not safe to send field `field3` to another thread
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: it is not safe to send field `field4` to another thread
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: it is not safe to send field `field5` to another thread
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