Skip to content

Commit

Permalink
Merge pull request #421 from madsmtm/small-fixes
Browse files Browse the repository at this point in the history
Update nightly Rust version and fix `objc2` docs.rs build
  • Loading branch information
madsmtm authored Feb 7, 2023
2 parents c7b6b58 + 4376891 commit c01ca1e
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ env:
--package=objc2-encode
--package=objc2-proc-macros
# The current nightly Rust version that our CI uses
CURRENT_NIGHTLY: nightly-2023-01-15
CURRENT_NIGHTLY: nightly-2023-02-07
# Various features that we'd usually want to test with
#
# Note: The `exception` feature is not enabled here, since it requires
Expand Down
2 changes: 1 addition & 1 deletion crates/objc2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ harness = false

[package.metadata.docs.rs]
default-target = "x86_64-apple-darwin"
features = ["exception", "malloc", "block", "unstable-docsrs"]
features = ["exception", "malloc", "unstable-docsrs"]

targets = [
# MacOS
Expand Down
2 changes: 1 addition & 1 deletion crates/test-ui/ui/declare_class_invalid_type2.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ error[E0271]: type mismatch resolving `<Id<NSObject, Shared> as MaybeUnwrap>::In
... |
| | }
| | );
| |_^ expected struct `CustomObject`, found struct `NSObject`
| |_^ expected `Id<CustomObject, _>`, found `Id<NSObject, Shared>`
|
= note: expected struct `Id<CustomObject, _>`
found struct `Id<NSObject, Shared>`
Expand Down
2 changes: 1 addition & 1 deletion crates/test-ui/ui/extern_methods_invalid_type.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ error[E0308]: mismatched types
| | );
| | ^
| | |
| |_expected enum `Option`, found `&mut MyObject`
| |_expected `Option<Allocated<_>>`, found `&mut MyObject`
| arguments to this function are incorrect
|
= note: expected enum `Option<Allocated<_>>`
Expand Down
2 changes: 1 addition & 1 deletion crates/test-ui/ui/msg_send_id_alloc_init_different.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0271]: type mismatch resolving `<Id<Object, Shared> as MaybeUnwrap>::Inpu
--> ui/msg_send_id_alloc_init_different.rs
|
| let _: Id<Object, Shared> = unsafe { msg_send_id![obj, init] };
| ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `NSObject`, found struct `Object`
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `Id<NSObject, _>`, found `Id<Object, Shared>`
|
= note: expected struct `Id<NSObject, _>`
found struct `Id<objc2::runtime::Object, Shared>`
Expand Down
10 changes: 5 additions & 5 deletions crates/test-ui/ui/msg_send_id_invalid_receiver.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0308]: mismatched types
| let _: Allocated<Object> = unsafe { msg_send_id![obj, alloc] };
| -------------^^^--------
| | |
| | expected struct `Class`, found struct `Object`
| | expected `&Class`, found `&Object`
| arguments to this function are incorrect
|
= note: expected reference `&objc2::runtime::Class`
Expand All @@ -21,7 +21,7 @@ error[E0308]: mismatched types
| let _: Id<Object, Shared> = unsafe { msg_send_id![obj, init] };
| -------------^^^-------
| | |
| | expected enum `Option`, found `&Object`
| | expected `Option<Allocated<_>>`, found `&Object`
| arguments to this function are incorrect
|
= note: expected enum `Option<Allocated<_>>`
Expand All @@ -38,7 +38,7 @@ error[E0308]: mismatched types
| let _: Id<Object, Shared> = unsafe { msg_send_id![cls, init] };
| -------------^^^-------
| | |
| | expected enum `Option`, found `&Class`
| | expected `Option<Allocated<_>>`, found `&Class`
| arguments to this function are incorrect
|
= note: expected enum `Option<Allocated<_>>`
Expand All @@ -55,7 +55,7 @@ error[E0308]: mismatched types
| let _: Id<Object, Shared> = unsafe { msg_send_id![obj, init] };
| -------------^^^-------
| | |
| | expected enum `Option`, found struct `Id`
| | expected `Option<Allocated<_>>`, found `Id<Object, Shared>`
| arguments to this function are incorrect
|
= note: expected enum `Option<Allocated<_>>`
Expand All @@ -72,7 +72,7 @@ error[E0308]: mismatched types
| let _: Id<Object, Shared> = unsafe { msg_send_id![obj, init] };
| -------------^^^-------
| | |
| | expected struct `Allocated`, found struct `Id`
| | expected `Option<Allocated<_>>`, found `Option<Id<Object, Shared>>`
| arguments to this function are incorrect
|
= note: expected enum `Option<Allocated<_>>`
Expand Down
8 changes: 4 additions & 4 deletions crates/test-ui/ui/msg_send_id_invalid_return.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ error[E0271]: type mismatch resolving `<Id<Object, Shared> as MaybeUnwrap>::Inpu
--> ui/msg_send_id_invalid_return.rs
|
| let _: Id<Object, Shared> = unsafe { msg_send_id![cls, alloc] };
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Allocated`, found struct `Id`
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Allocated<_>`, found `Id<Object, Shared>`
|
= note: expected struct `Allocated<_>`
found struct `Id<objc2::runtime::Object, Shared>`
Expand All @@ -104,7 +104,7 @@ error[E0271]: type mismatch resolving `<Id<Allocated<Object>, Shared> as MaybeUn
--> ui/msg_send_id_invalid_return.rs
|
| let _: Id<Allocated<Object>, Shared> = unsafe { msg_send_id![cls, alloc] };
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Allocated`, found struct `Id`
| ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Allocated<_>`, found `Id<Allocated<Object>, Shared>`
|
= note: expected struct `Allocated<_>`
found struct `Id<Allocated<objc2::runtime::Object>, Shared>`
Expand Down Expand Up @@ -137,7 +137,7 @@ error[E0271]: type mismatch resolving `<Id<Class, Shared> as MaybeUnwrap>::Input
--> ui/msg_send_id_invalid_return.rs
|
| let _: Id<Class, Shared> = unsafe { msg_send_id![obj, init] };
| ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Object`, found struct `Class`
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `Id<Object, _>`, found `Id<Class, Shared>`
|
= note: expected struct `Id<objc2::runtime::Object, _>`
found struct `Id<objc2::runtime::Class, Shared>`
Expand All @@ -152,7 +152,7 @@ error[E0271]: type mismatch resolving `<Id<NSObject, Shared> as MaybeUnwrap>::In
--> ui/msg_send_id_invalid_return.rs
|
| let _: Id<NSObject, Shared> = unsafe { msg_send_id![obj, init] };
| ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Object`, found struct `NSObject`
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `Id<Object, _>`, found `Id<NSObject, Shared>`
|
= note: expected struct `Id<objc2::runtime::Object, _>`
found struct `Id<NSObject, Shared>`
Expand Down
14 changes: 7 additions & 7 deletions crates/test-ui/ui/msg_send_invalid_error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: () = unsafe { msg_send![obj, a: _] };
| ^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Id<_, Shared>>`
|
= note: expected unit type `()`
found enum `Result<(), Id<_, Shared>>`
Expand All @@ -12,7 +12,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: Result<i32, _> = unsafe { msg_send![obj, b: _] };
| ^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `()`
| ^^^^^^^^^^^^^^^^^^^^ expected `Result<i32, _>`, found `Result<(), Id<_, Shared>>`
|
= note: expected enum `Result<i32, _>`
found enum `Result<(), Id<_, Shared>>`
Expand All @@ -27,7 +27,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: Result<(), i32> = unsafe { msg_send![obj, c: _] };
| ^^^^^^^^^^^^^^^^^^^^ expected `i32`, found struct `Id`
| ^^^^^^^^^^^^^^^^^^^^ expected `Result<(), i32>`, found `Result<(), Id<_, Shared>>`
|
= note: expected enum `Result<_, i32>`
found enum `Result<_, Id<_, Shared>>`
Expand Down Expand Up @@ -60,7 +60,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: () = unsafe { msg_send![obj, e: obj, f: _] };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Id<_, Shared>>`
|
= note: expected unit type `()`
found enum `Result<(), Id<_, Shared>>`
Expand All @@ -70,7 +70,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: () = unsafe { msg_send![super(obj), g: _] };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Id<_, Shared>>`
|
= note: expected unit type `()`
found enum `Result<(), Id<_, Shared>>`
Expand All @@ -80,7 +80,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: () = unsafe { msg_send![super(obj, NSString::class()), h: _] };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<(), Id<_, Shared>>`
|
= note: expected unit type `()`
found enum `Result<(), Id<_, Shared>>`
Expand All @@ -90,7 +90,7 @@ error[E0308]: mismatched types
--> ui/msg_send_invalid_error.rs
|
| let _: () = unsafe { msg_send_id![obj, i: _] };
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result`
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found `Result<Id<_, _>, Id<_, Shared>>`
|
= note: expected unit type `()`
found enum `Result<Id<_, _>, Id<_, Shared>>`
Expand Down

0 comments on commit c01ca1e

Please sign in to comment.