@@ -5,7 +5,7 @@ LL | unsafe impl Send for NoGeneric {}
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
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`
8
+ note: the type of field `rc_is_not_send` is `!Send`
9
9
--> $DIR/test.rs:8:5
10
10
|
11
11
LL | rc_is_not_send: Rc<String>,
@@ -18,19 +18,19 @@ error: this implementation is unsound, as some fields in `MultiField<T>` are `!S
18
18
LL | unsafe impl<T> Send for MultiField<T> {}
19
19
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
20
|
21
- note: the field `field1` has type `T` which is `!Send`
21
+ note: the type of field `field1` is `!Send`
22
22
--> $DIR/test.rs:14:5
23
23
|
24
24
LL | field1: T,
25
25
| ^^^^^^^^^
26
26
= help: add `T: Send` bound in `Send` impl
27
- note: the field `field2` has type `T` which is `!Send`
27
+ note: the type of field `field2` is `!Send`
28
28
--> $DIR/test.rs:15:5
29
29
|
30
30
LL | field2: T,
31
31
| ^^^^^^^^^
32
32
= help: add `T: Send` bound in `Send` impl
33
- note: the field `field3` has type `T` which is `!Send`
33
+ note: the type of field `field3` is `!Send`
34
34
--> $DIR/test.rs:16:5
35
35
|
36
36
LL | field3: T,
@@ -43,7 +43,7 @@ error: this implementation is unsound, as some fields in `MyOption<T>` are `!Sen
43
43
LL | unsafe impl<T> Send for MyOption<T> {}
44
44
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
45
|
46
- note: the field `0` has type `T` which is `!Send`
46
+ note: the type of field `0` is `!Send`
47
47
--> $DIR/test.rs:22:12
48
48
|
49
49
LL | MySome(T),
@@ -56,31 +56,31 @@ error: this implementation is unsound, as some fields in `HeuristicTest` are `!S
56
56
LL | unsafe impl Send for HeuristicTest {}
57
57
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58
58
|
59
- note: the field `field1` has type `std::vec::Vec<*const NonSend>` which is `!Send`
59
+ note: the type of field `field1` is `!Send`
60
60
--> $DIR/test.rs:34:5
61
61
|
62
62
LL | field1: Vec<*const NonSend>,
63
63
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
64
= help: use a thread-safe type that implements `Send`
65
- note: the field `field2` has type `[*const NonSend; 3]` which is `!Send`
65
+ note: the type of field `field2` is `!Send`
66
66
--> $DIR/test.rs:35:5
67
67
|
68
68
LL | field2: [*const NonSend; 3],
69
69
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
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`
71
+ note: the type of field `field3` is `!Send`
72
72
--> $DIR/test.rs:36:5
73
73
|
74
74
LL | field3: (*const NonSend, *const NonSend, *const NonSend),
75
75
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
76
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`
77
+ note: the type of field `field4` is `!Send`
78
78
--> $DIR/test.rs:37:5
79
79
|
80
80
LL | field4: (*const NonSend, Rc<u8>),
81
81
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
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`
83
+ note: the type of field `field5` is `!Send`
84
84
--> $DIR/test.rs:38:5
85
85
|
86
86
LL | field5: Vec<Vec<*const NonSend>>,
0 commit comments