Skip to content

Commit ef8df9d

Browse files
committed
Forgot to bless ui-toml test
1 parent dfed2e3 commit ef8df9d

File tree

1 file changed

+10
-10
lines changed
  • tests/ui-toml/strict_non_send_field_in_send_ty

1 file changed

+10
-10
lines changed

tests/ui-toml/strict_non_send_field_in_send_ty/test.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | unsafe impl Send for NoGeneric {}
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= 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`
99
--> $DIR/test.rs:8:5
1010
|
1111
LL | rc_is_not_send: Rc<String>,
@@ -18,19 +18,19 @@ error: this implementation is unsound, as some fields in `MultiField<T>` are `!S
1818
LL | unsafe impl<T> Send for MultiField<T> {}
1919
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2020
|
21-
note: the field `field1` has type `T` which is `!Send`
21+
note: the type of field `field1` is `!Send`
2222
--> $DIR/test.rs:14:5
2323
|
2424
LL | field1: T,
2525
| ^^^^^^^^^
2626
= 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`
2828
--> $DIR/test.rs:15:5
2929
|
3030
LL | field2: T,
3131
| ^^^^^^^^^
3232
= 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`
3434
--> $DIR/test.rs:16:5
3535
|
3636
LL | field3: T,
@@ -43,7 +43,7 @@ error: this implementation is unsound, as some fields in `MyOption<T>` are `!Sen
4343
LL | unsafe impl<T> Send for MyOption<T> {}
4444
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4545
|
46-
note: the field `0` has type `T` which is `!Send`
46+
note: the type of field `0` is `!Send`
4747
--> $DIR/test.rs:22:12
4848
|
4949
LL | MySome(T),
@@ -56,31 +56,31 @@ error: this implementation is unsound, as some fields in `HeuristicTest` are `!S
5656
LL | unsafe impl Send for HeuristicTest {}
5757
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5858
|
59-
note: the field `field1` has type `std::vec::Vec<*const NonSend>` which is `!Send`
59+
note: the type of field `field1` is `!Send`
6060
--> $DIR/test.rs:34:5
6161
|
6262
LL | field1: Vec<*const NonSend>,
6363
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6464
= 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`
6666
--> $DIR/test.rs:35:5
6767
|
6868
LL | field2: [*const NonSend; 3],
6969
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
7070
= 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`
7272
--> $DIR/test.rs:36:5
7373
|
7474
LL | field3: (*const NonSend, *const NonSend, *const NonSend),
7575
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7676
= 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`
7878
--> $DIR/test.rs:37:5
7979
|
8080
LL | field4: (*const NonSend, Rc<u8>),
8181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8282
= 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`
8484
--> $DIR/test.rs:38:5
8585
|
8686
LL | field5: Vec<Vec<*const NonSend>>,

0 commit comments

Comments
 (0)