mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Forgot to bless ui-toml test
This commit is contained in:
parent
dfed2e31d5
commit
ef8df9df68
1 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@ LL | unsafe impl Send for NoGeneric {}
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: `-D clippy::non-send-field-in-send-ty` implied by `-D warnings`
|
||||
note: the field `rc_is_not_send` has type `std::rc::Rc<std::string::String>` which is `!Send`
|
||||
note: the type of field `rc_is_not_send` is `!Send`
|
||||
--> $DIR/test.rs:8:5
|
||||
|
|
||||
LL | rc_is_not_send: Rc<String>,
|
||||
|
@ -18,19 +18,19 @@ error: this implementation is unsound, as some fields in `MultiField<T>` are `!S
|
|||
LL | unsafe impl<T> Send for MultiField<T> {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the field `field1` has type `T` which is `!Send`
|
||||
note: the type of field `field1` is `!Send`
|
||||
--> $DIR/test.rs:14:5
|
||||
|
|
||||
LL | field1: T,
|
||||
| ^^^^^^^^^
|
||||
= help: add `T: Send` bound in `Send` impl
|
||||
note: the field `field2` has type `T` which is `!Send`
|
||||
note: the type of field `field2` is `!Send`
|
||||
--> $DIR/test.rs:15:5
|
||||
|
|
||||
LL | field2: T,
|
||||
| ^^^^^^^^^
|
||||
= help: add `T: Send` bound in `Send` impl
|
||||
note: the field `field3` has type `T` which is `!Send`
|
||||
note: the type of field `field3` is `!Send`
|
||||
--> $DIR/test.rs:16:5
|
||||
|
|
||||
LL | field3: T,
|
||||
|
@ -43,7 +43,7 @@ error: this implementation is unsound, as some fields in `MyOption<T>` are `!Sen
|
|||
LL | unsafe impl<T> Send for MyOption<T> {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the field `0` has type `T` which is `!Send`
|
||||
note: the type of field `0` is `!Send`
|
||||
--> $DIR/test.rs:22:12
|
||||
|
|
||||
LL | MySome(T),
|
||||
|
@ -56,31 +56,31 @@ error: this implementation is unsound, as some fields in `HeuristicTest` are `!S
|
|||
LL | unsafe impl Send for HeuristicTest {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the field `field1` has type `std::vec::Vec<*const NonSend>` which is `!Send`
|
||||
note: the type of field `field1` is `!Send`
|
||||
--> $DIR/test.rs:34:5
|
||||
|
|
||||
LL | field1: Vec<*const NonSend>,
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: use a thread-safe type that implements `Send`
|
||||
note: the field `field2` has type `[*const NonSend; 3]` which is `!Send`
|
||||
note: the type of field `field2` is `!Send`
|
||||
--> $DIR/test.rs:35:5
|
||||
|
|
||||
LL | field2: [*const NonSend; 3],
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: use a thread-safe type that implements `Send`
|
||||
note: the field `field3` has type `(*const NonSend, *const NonSend, *const NonSend)` which is `!Send`
|
||||
note: the type of field `field3` is `!Send`
|
||||
--> $DIR/test.rs:36:5
|
||||
|
|
||||
LL | field3: (*const NonSend, *const NonSend, *const NonSend),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: use a thread-safe type that implements `Send`
|
||||
note: the field `field4` has type `(*const NonSend, std::rc::Rc<u8>)` which is `!Send`
|
||||
note: the type of field `field4` is `!Send`
|
||||
--> $DIR/test.rs:37:5
|
||||
|
|
||||
LL | field4: (*const NonSend, Rc<u8>),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= help: use a thread-safe type that implements `Send`
|
||||
note: the field `field5` has type `std::vec::Vec<std::vec::Vec<*const NonSend>>` which is `!Send`
|
||||
note: the type of field `field5` is `!Send`
|
||||
--> $DIR/test.rs:38:5
|
||||
|
|
||||
LL | field5: Vec<Vec<*const NonSend>>,
|
||||
|
|
Loading…
Reference in a new issue