diff --git a/tests/ui-toml/strict_non_send_field_in_send_ty/test.stderr b/tests/ui-toml/strict_non_send_field_in_send_ty/test.stderr index 093c9320945..74ec93cfa55 100644 --- a/tests/ui-toml/strict_non_send_field_in_send_ty/test.stderr +++ b/tests/ui-toml/strict_non_send_field_in_send_ty/test.stderr @@ -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` 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, @@ -18,19 +18,19 @@ error: this implementation is unsound, as some fields in `MultiField` are `!S LL | unsafe impl Send for MultiField {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | -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` are `!Sen LL | unsafe impl Send for MyOption {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | -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)` which is `!Send` +note: the type of field `field4` is `!Send` --> $DIR/test.rs:37:5 | LL | field4: (*const NonSend, Rc), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: use a thread-safe type that implements `Send` -note: the field `field5` has type `std::vec::Vec>` which is `!Send` +note: the type of field `field5` is `!Send` --> $DIR/test.rs:38:5 | LL | field5: Vec>,