Skip to content

Commit 3cbef36

Browse files
authored
Merge pull request #246 from zatchl/test-ui-nightly-1-65
Update UI tests for Rust 1.65 nightly
2 parents 096ba02 + 3fe9737 commit 3cbef36

5 files changed

+11
-11
lines changed

test-ui/ui/global_block_not_encode.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error[E0277]: the trait bound `Box<i32>: objc2_encode::encode::Encode` is not sa
1616
*mut c_void
1717
AtomicBool
1818
and 152 others
19-
= note: required because of the requirements on the impl of `BlockArguments` for `(Box<i32>,)`
20-
= note: required because of the requirements on the impl of `Sync` for `GlobalBlock<(Box<i32>,)>`
19+
= note: required for `(Box<i32>,)` to implement `BlockArguments`
20+
= note: required for `GlobalBlock<(Box<i32>,)>` to implement `Sync`
2121
= note: shared static variables must have a type that implements `Sync`
2222
= note: this error originates in the macro `global_block` (in Nightly builds, run with -Z macro-backtrace for more info)

test-ui/ui/msg_send_id_invalid_receiver.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,5 @@ error[E0277]: the trait bound `Id<objc2::runtime::Object, Shared>: MessageReceiv
109109
= help: the following other types implement trait `MessageReceiver`:
110110
&'a Id<T, O>
111111
&'a mut Id<T, objc2::rc::Owned>
112-
= note: required because of the requirements on the impl of `MsgSendId<Id<objc2::runtime::Object, Shared>, _, _>` for `RetainSemantics<false, false, false, true>`
112+
= note: required for `RetainSemantics<false, false, false, true>` to implement `MsgSendId<Id<objc2::runtime::Object, Shared>, _, _>`
113113
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)

test-ui/ui/msg_send_id_invalid_return.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ error[E0277]: the trait bound `objc2::runtime::Class: Message` is not satisfied
3030
NSException
3131
NSMutableArray<T, O>
3232
and 11 others
33-
= note: required because of the requirements on the impl of `MsgSendId<&objc2::runtime::Class, objc2::runtime::Class, Shared>` for `RetainSemantics<true, false, false, false>`
33+
= note: required for `RetainSemantics<true, false, false, false>` to implement `MsgSendId<&objc2::runtime::Class, objc2::runtime::Class, Shared>`
3434
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)
3535

3636
error[E0277]: the trait bound `objc2::runtime::Class: Message` is not satisfied
@@ -49,7 +49,7 @@ error[E0277]: the trait bound `objc2::runtime::Class: Message` is not satisfied
4949
NSException
5050
NSMutableArray<T, O>
5151
and 11 others
52-
= note: required because of the requirements on the impl of `MsgSendId<&objc2::runtime::Class, objc2::runtime::Class, Shared>` for `RetainSemantics<true, false, false, false>`
52+
= note: required for `RetainSemantics<true, false, false, false>` to implement `MsgSendId<&objc2::runtime::Class, objc2::runtime::Class, Shared>`
5353
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)
5454

5555
error[E0277]: the trait bound `&objc2::runtime::Object: MaybeUnwrap<Allocated<_>, _>` is not satisfied
@@ -84,7 +84,7 @@ error[E0277]: the trait bound `objc2::runtime::Class: Message` is not satisfied
8484
NSException
8585
NSMutableArray<T, O>
8686
and 11 others
87-
= note: required because of the requirements on the impl of `MsgSendId<&objc2::runtime::Class, Allocated<objc2::runtime::Class>, Shared>` for `RetainSemantics<false, true, false, false>`
87+
= note: required for `RetainSemantics<false, true, false, false>` to implement `MsgSendId<&objc2::runtime::Class, Allocated<objc2::runtime::Class>, Shared>`
8888
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)
8989

9090
error[E0277]: the trait bound `Id<objc2::runtime::Object, Shared>: MaybeUnwrap<Allocated<_>, _>` is not satisfied

test-ui/ui/msg_send_not_encode.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ error[E0277]: the trait bound `Vec<u8>: Encode` is not satisfied
3737
*mut c_void
3838
AtomicBool
3939
and 159 others
40-
= note: required because of the requirements on the impl of `MessageArguments` for `(Vec<u8>,)`
40+
= note: required for `(Vec<u8>,)` to implement `MessageArguments`
4141
note: required by a bound in `send_message`
4242
--> $WORKSPACE/objc2/src/message/mod.rs
4343
|

test-ui/ui/nsarray_bound_not_send_sync.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ error[E0277]: `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
77
= help: within `objc2::runtime::Object`, the trait `Sync` is not implemented for `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
88
= note: required because it appears within the type `objc_object`
99
= note: required because it appears within the type `objc2::runtime::Object`
10-
= note: required because of the requirements on the impl of `Sync` for `NSArray<objc2::runtime::Object>`
10+
= note: required for `NSArray<objc2::runtime::Object>` to implement `Sync`
1111
note: required by a bound in `needs_sync`
1212
--> ui/nsarray_bound_not_send_sync.rs
1313
|
@@ -26,7 +26,7 @@ error[E0277]: `*const UnsafeCell<()>` cannot be sent between threads safely
2626
= note: required because it appears within the type `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
2727
= note: required because it appears within the type `objc_object`
2828
= note: required because it appears within the type `objc2::runtime::Object`
29-
= note: required because of the requirements on the impl of `Sync` for `NSArray<objc2::runtime::Object>`
29+
= note: required for `NSArray<objc2::runtime::Object>` to implement `Sync`
3030
note: required by a bound in `needs_sync`
3131
--> ui/nsarray_bound_not_send_sync.rs
3232
|
@@ -42,7 +42,7 @@ error[E0277]: `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
4242
= help: within `objc2::runtime::Object`, the trait `Sync` is not implemented for `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
4343
= note: required because it appears within the type `objc_object`
4444
= note: required because it appears within the type `objc2::runtime::Object`
45-
= note: required because of the requirements on the impl of `Send` for `NSArray<objc2::runtime::Object>`
45+
= note: required for `NSArray<objc2::runtime::Object>` to implement `Send`
4646
note: required by a bound in `needs_send`
4747
--> ui/nsarray_bound_not_send_sync.rs
4848
|
@@ -61,7 +61,7 @@ error[E0277]: `*const UnsafeCell<()>` cannot be sent between threads safely
6161
= note: required because it appears within the type `UnsafeCell<PhantomData<(*const UnsafeCell<()>, PhantomPinned)>>`
6262
= note: required because it appears within the type `objc_object`
6363
= note: required because it appears within the type `objc2::runtime::Object`
64-
= note: required because of the requirements on the impl of `Send` for `NSArray<objc2::runtime::Object>`
64+
= note: required for `NSArray<objc2::runtime::Object>` to implement `Send`
6565
note: required by a bound in `needs_send`
6666
--> ui/nsarray_bound_not_send_sync.rs
6767
|

0 commit comments

Comments
 (0)