You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Allow msg_send_id![obj, init] to non-option wrapped Id"
It makes error messages and documentation worse (which _is_ a big deal), and I doubt it'll really be useful. Besides, we can always re-add it without breaking changes!
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&objc2::runtime::Object>` is not implemented for `Option<Id<_, _>>`
39
+
| -------------^^^-------
40
+
| | |
41
+
| | expected enum `Option`, found `&objc2::runtime::Object`
42
+
| arguments to this function are incorrect
40
43
|
41
-
= help: the following other types implement trait `From<T>`:
42
-
<Option<&'a T> as From<&'a Option<T>>>
43
-
<Option<&'a mut T> as From<&'a mut Option<T>>>
44
-
<Option<T> as From<T>>
45
-
= note: required because of the requirements on the impl of `Into<Option<Id<_, _>>>` for `&objc2::runtime::Object`
46
-
= note: required because of the requirements on the impl of `MsgSendId<&objc2::runtime::Object, Id<_, _>>` for `RetainSemantics<false, false, true, false>`
47
-
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)
44
+
= note: expected enum `Option<Id<_, _>>`
45
+
found reference `&objc2::runtime::Object`
46
+
note: associated function defined here
47
+
--> $WORKSPACE/objc2/src/__macro_helpers.rs
48
+
|
49
+
| unsafe fn send_message_id<A: MessageArguments>(
50
+
| ^^^^^^^^^^^^^^^
48
51
49
-
error[E0277]: the trait bound `Option<Id<_, _>>: From<&objc2::runtime::Class>` is not satisfied
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `From<&objc2::runtime::Class>` is not implemented for `Option<Id<_, _>>`
56
+
| -------------^^^-------
57
+
| | |
58
+
| | expected enum `Option`, found `&objc2::runtime::Class`
59
+
| arguments to this function are incorrect
54
60
|
55
-
= help: the following other types implement trait `From<T>`:
56
-
<Option<&'a T> as From<&'a Option<T>>>
57
-
<Option<&'a mut T> as From<&'a mut Option<T>>>
58
-
<Option<T> as From<T>>
59
-
= note: required because of the requirements on the impl of `Into<Option<Id<_, _>>>` for `&objc2::runtime::Class`
60
-
= note: required because of the requirements on the impl of `MsgSendId<&objc2::runtime::Class, Id<_, _>>` for `RetainSemantics<false, false, true, false>`
61
-
= note: this error originates in the macro `msg_send_id` (in Nightly builds, run with -Z macro-backtrace for more info)
61
+
= note: expected enum `Option<Id<_, _>>`
62
+
found reference `&objc2::runtime::Class`
63
+
note: associated function defined here
64
+
--> $WORKSPACE/objc2/src/__macro_helpers.rs
65
+
|
66
+
| unsafe fn send_message_id<A: MessageArguments>(
67
+
| ^^^^^^^^^^^^^^^
62
68
63
69
error[E0277]: the trait bound `Id<objc2::runtime::Object, Shared>: MessageReceiver` is not satisfied
0 commit comments