Skip to content

Commit a33c1ba

Browse files
committed
Update UI tests
1 parent e3be587 commit a33c1ba

12 files changed

+15
-14
lines changed

test-ui/ui/invalid_ns_string_input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use objc2_foundation::ns_string;
1+
use objc2::ns_string;
22

33
fn main() {
44
let _ = ns_string!(1u8);

test-ui/ui/invalid_ns_string_output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use objc2_foundation::ns_string;
1+
use objc2::ns_string;
22

33
fn main() {
44
let _: u8 = ns_string!("abc");

test-ui/ui/mainthreadmarker_not_send_sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Test that MainThreadMarker is neither Send nor Sync.
2-
use objc2_foundation::MainThreadMarker;
2+
use objc2::foundation::MainThreadMarker;
33

44
fn needs_sync<T: Sync>() {}
55
fn needs_send<T: Send>() {}

test-ui/ui/msg_send_id_invalid_return.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Test compiler output with invalid msg_send_id receivers.
2+
use objc2::foundation::NSObject;
23
use objc2::msg_send_id;
3-
use objc2::runtime::{Class, Object};
44
use objc2::rc::{Allocated, Id, Owned, Shared};
5-
use objc2_foundation::NSObject;
5+
use objc2::runtime::{Class, Object};
66

77
fn main() {
88
let cls: &Class;

test-ui/ui/msg_send_not_encode.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ error[E0277]: the trait bound `Vec<u8>: Encode` is not satisfied
1313
*mut T
1414
*mut c_void
1515
AtomicBool
16-
and 154 others
16+
and 159 others
1717
note: required by a bound in `send_message`
1818
--> $WORKSPACE/objc2/src/message/mod.rs
1919
|
@@ -36,7 +36,7 @@ error[E0277]: the trait bound `Vec<u8>: Encode` is not satisfied
3636
*mut T
3737
*mut c_void
3838
AtomicBool
39-
and 154 others
39+
and 159 others
4040
= note: required because of the requirements on the impl of `MessageArguments` for `(Vec<u8>,)`
4141
note: required by a bound in `send_message`
4242
--> $WORKSPACE/objc2/src/message/mod.rs

test-ui/ui/ns_string_not_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use objc2_foundation::ns_string;
1+
use objc2::ns_string;
22

33
fn main() {
44
let s: &str = "abc";

test-ui/ui/ns_string_output_not_const.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use objc2_foundation::{ns_string, NSString};
1+
use objc2::foundation::NSString;
2+
use objc2::ns_string;
23

34
fn main() {
45
static STRING: &NSString = ns_string!("abc");

test-ui/ui/nsarray_bound_not_send_sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
use objc2::foundation::NSArray;
12
use objc2::rc::Shared;
23
use objc2::runtime::Object;
3-
use objc2_foundation::NSArray;
44

55
fn needs_sync<T: ?Sized + Sync>() {}
66
fn needs_send<T: ?Sized + Send>() {}

test-ui/ui/nsstring_as_str_use_after_release.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Test that the lifetime of `NSString::as_str` is bound to the string.
22
3+
use objc2::foundation::NSString;
34
use objc2::rc::autoreleasepool;
4-
use objc2_foundation::NSString;
55

66
fn main() {
77
autoreleasepool(|pool| {

test-ui/ui/nsstring_as_str_use_outside_pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Test that the lifetime of `NSString::as_str` is bound to the pool.
22
3+
use objc2::foundation::NSString;
34
use objc2::rc::autoreleasepool;
4-
use objc2_foundation::NSString;
55

66
fn main() {
77
let ns_string = NSString::new();

0 commit comments

Comments
 (0)